|
| 1 | +Celtic CE cheat sheet created by TIFreak8x (https://www.cemetech.net/users/tifreak8x) |
| 2 | + |
| 3 | +Use “rowSwap(” before variable name to indicate AppVar |
| 4 | +Use “*row(” before variable name to indicate Group |
| 5 | + |
| 6 | +ReadLine det(0) |
| 7 | +| Str0 – Var name |
| 8 | +| Ans – Line Number |
| 9 | + |
| 10 | +ReplaceLine det(1) |
| 11 | +| Str0 – Var name |
| 12 | +| Ans – Line Number |
| 13 | +| Str9 – Info to replace with |
| 14 | + |
| 15 | +InsertLine det(2) |
| 16 | +| Str0 – Var name |
| 17 | +| Ans – Line Number |
| 18 | +| Str9 – Contents of line |
| 19 | + |
| 20 | +SpecialChars det(3) |
| 21 | +| Str9 – Stores → and “ into Str9 as first 2 characters |
| 22 | + |
| 23 | +CreateVar det(4) |
| 24 | +| Str0 – Var name |
| 25 | +| Str9 – May contain error codes |
| 26 | + |
| 27 | +ArcUnarcVar det(5) |
| 28 | +| Str0 – Var name |
| 29 | + |
| 30 | +DeleteVar det(6) |
| 31 | +| Str0 – Var name to delete |
| 32 | + |
| 33 | +DeleteLine det(7) |
| 34 | +| Str0 – Var name |
| 35 | +| Ans – Line number |
| 36 | +| Str9 – Error Codes |
| 37 | + |
| 38 | +VarStatus det(8) |
| 39 | +| Str0 – Var name |
| 40 | +| Str9 – 1 A/R 2V/H 3 L/W 4 _ 5 Size |
| 41 | + |
| 42 | +BufSprite det(9, width, x, y) |
| 43 | +| Str9 – Sprite Data in ASCII hex (1-F, colors out of VARS menu, G goes to next line) |
| 44 | + |
| 45 | +BufSpriteSelect det(10, width, x, y, start, length) |
| 46 | +| Str9 – Sprite Data |
| 47 | + |
| 48 | +ExecArcPrgm det(11, function, temp_prog_#) |
| 49 | +| Ans – prgm to copy |
| 50 | +| Function 0: Copies prgm to xtemp 1: deletes xtemp# 2: Delete All |
| 51 | + |
| 52 | +DispColor det(12, fg_low, fg_high, bg_low, bg_high) |
| 53 | +| det(12, 300) disables |
| 54 | +| det(12,fg_OS,BG_OS) use OS color commands |
| 55 | + |
| 56 | +DispText det(13, LgFont, fg_low, fg_high, bg_low, bg_high, x, y) |
| 57 | +| Str9 – Text |
| 58 | +| det(13, LgFont, fg_OS, bg_OS, x, y) alternative use |
| 59 | + |
| 60 | +ExecHex det(14) |
| 61 | +| Ans – hex code |
| 62 | +| Must be under 8,192 char, must be even amount of char. |
| 63 | + |
| 64 | +FillRect det(15, low, high, x, y, width, height) |
| 65 | +| det(15, OS_Color, x, y, width, height) Alt usage |
| 66 | + |
| 67 | +FillScreen det(16, low, high) |
| 68 | + |
| 69 | +DrawLine det(17, low, high, x1, y1, x2, y2) |
| 70 | +| det(17, OS_Color, x1, y1, x2, y2) |
| 71 | + |
| 72 | +SetPixel det(18, low, high, x, y) |
| 73 | +| det(18, OS_Color, x, y) |
| 74 | +| Using 0 for OS_Color inverts pixel |
| 75 | + |
| 76 | +GetPixel det(19, x, y) |
| 77 | +| Ans – low byte of pixel |
| 78 | +| theta – high byte of pixel |
| 79 | + |
| 80 | +PixelTestColor det(20, row, column) |
| 81 | +| Ans – 0 if no pixel, contains OS color otherwise |
| 82 | + |
| 83 | +PutSprite det(21, x, y, width, height, string) |
| 84 | +| Use xlibc colors for string data, string is 0-9, for Str# var |
| 85 | + |
| 86 | +GetMode det(22, mode) |
| 87 | +| theta = returns value on mode status, 0-14 for mode, refer to page 35 of manual |
| 88 | + |
| 89 | +RenameVar det(23) |
| 90 | +| Str0 – Var to rename |
| 91 | +| Str9 – New name |
| 92 | + |
| 93 | +LockPrgm det(24) |
| 94 | +| Str0 – Name of var to lock/unlock |
| 95 | + |
| 96 | +HidePrgm det(25) |
| 97 | +| Str0 – Name of var to hide/unhide |
| 98 | + |
| 99 | +PrgmToStr det(26, Str_Number) |
| 100 | +| Str0 – Name of var to copy |
| 101 | + |
| 102 | +GetPrgmType det(27) |
| 103 | +| Str0 – Name of Prgm to check |
| 104 | +| 0 ASM, 1 C, 2 BASIC, 3 ICE, 4 ICE Src |
| 105 | + |
| 106 | +GetBatteryStatus det(28) |
| 107 | +| Theta – Battery status, 0-4. +10 if battery charging |
| 108 | + |
| 109 | +SetBrightness det(29, Brightness) |
| 110 | +| Brightness = 0-255, bright ↔ dark |
| 111 | +| det(29) returns brightness level to theta |
| 112 | + |
| 113 | +GetListElem det(30, list_element) |
| 114 | +| Ans – List name |
| 115 | +| 0 – dimension of list, 1+ list element |
| 116 | + |
| 117 | +GetArgType det(31) |
| 118 | +| Ans – Arg to check |
| 119 | +| Returns theta, 0 real, 1 list, 2 matrix, 4 string, 12 complex, 13 cpx list |
| 120 | + |
| 121 | +ChkStats det(32, function) |
| 122 | +| Function: 0 Free RAM, 1 Free ROM, 2 Bootcode, 3 OS version, 4 Hardware version, Str9 1-3, theta 4 |
| 123 | + |
| 124 | +FindProg det(33, type) |
| 125 | +| Ans = search string, search contents in beginning of prog |
| 126 | +| Type 0 prog, 1 appvar |
| 127 | + |
| 128 | +UnGroupFile det(34, overwrite) |
| 129 | +| Str0 – Group name |
| 130 | +| overwrite: 1 Yes, 0 No |
| 131 | + |
| 132 | +GetGroup det(35) |
| 133 | +| Str0 – group name |
| 134 | +| Str9 – Returns names of prgms/appvars in group |
| 135 | + |
| 136 | +ExtGroup det(36, item) |
| 137 | +| Str0 – Group name |
| 138 | +| Item is numerical, based off list in GetGroup |
| 139 | + |
| 140 | +GroupMem det(37, item) |
| 141 | +| Str0 – Group name |
| 142 | +| theta – size of prgm/appvar depicted via item |
| 143 | + |
| 144 | +BinRead det(38, byte_start, number of bytes) |
| 145 | +| Str0 – File name |
| 146 | +| Str9 – text string, hex of bytes read |
| 147 | + |
| 148 | +BinWrite det(39, byte_start) |
| 149 | +| Str0 – File name |
| 150 | +| Str9 – string to write |
| 151 | + |
| 152 | +BinDelete det(40, byte_start, number_of_bytes) |
| 153 | +| Str0 – File name |
| 154 | + |
| 155 | +HexToBin det(41) |
| 156 | +| Ans – Hex string |
| 157 | +| Str9 – Converted data |
| 158 | + |
| 159 | +BinToHex det(42) |
| 160 | +| Ans – Token string |
| 161 | +| Str9 – Converted data |
| 162 | + |
| 163 | +GraphCopy det(43) |
| 164 | +| No vars needed |
| 165 | +| Copies graph buffer to screen |
| 166 | + |
| 167 | +EditByte det(44, Str#, target_byte, replace_byte) |
| 168 | +| Str# - 0-9 |
| 169 | +| First byte of file is 0 |
| 170 | + |
| 171 | +ErrorHandle det(45, get_offset) |
| 172 | +| Ans – Prgm to run |
| 173 | +| get_offset is 1, returns byte_offset where error occurred |
| 174 | + |
| 175 | +StringRead det(46, Str#, start, bytes) |
| 176 | +| Str# - 0-9 Str var |
| 177 | +| Str9 – extracted substring | theta – size of string |
| 178 | + |
| 179 | +HexToDec det(47) |
| 180 | +| Ans – Hex string to convert |
| 181 | +| theta – converted decimal integer. |
| 182 | + |
| 183 | +DecToHex det(48, number, override) |
| 184 | +| Str9 – Hex String from Decimal |
| 185 | +| override – 1 all leading zeroes |
| 186 | + |
| 187 | +EditWord det(49, Str#, start, word) |
| 188 | +| Str# - Which string variable to read |
| 189 | +| Page 50 in the manual for more information |
| 190 | + |
| 191 | +BitOperate det(50, value1, value2, function) |
| 192 | +| function – 0 None, 1 And, 2 Or, 3 Xor, 4 Left shift, 5 Right shift |
| 193 | +| theta – Result of Op |
| 194 | + |
| 195 | +GetProgList det(51, type) |
| 196 | +| Ans – Partial name to search |
| 197 | +| type – 0 Programs, 1 AppVars, 2 Groups |
| 198 | + |
| 199 | +SearchFile det(52, offset) |
| 200 | +| Str0 – File name |
| 201 | +| Str9 – Search string |
| 202 | +| theta – byte offset of located string |
| 203 | + |
| 204 | +CheckGC det(53) |
| 205 | +| Str0 – File name |
| 206 | +| Ans – 0 if Garbage collect will trigger, 1 if not |
| 207 | + |
| 208 | +GetStringWidth det(54, font) |
| 209 | +| Ans – String data to check |
| 210 | +| font – 0 small font, 1 large font |
| 211 | + |
| 212 | +TransSprite det(55, x, y, width, height, transparency, Str#) |
| 213 | +| transparency – 0-255 color |
| 214 | +| Str# - String variable 0-9 |
| 215 | + |
| 216 | +ScaleSprite det(56, x, y, width, height, scale_x, scale_y, Str#) |
| 217 | +| Str# - String variable 0-9 |
| 218 | + |
| 219 | +ScaleTSprite det(57, x, y, width, height, scale_x, scale_y, transparency, Str#) |
| 220 | +| Str# - String variable 0-9 |
| 221 | +| transparency – 0-255 color value |
| 222 | + |
| 223 | +ShiftScreen det(58, direction, amount, x, y, width, height) |
| 224 | +| direction – 0 up, 1 down, 2 left, 3 right |
| 225 | +| Alt: det(58, direction, amount) |
| 226 | + |
| 227 | +RGBto565 det(59, r, g, b) |
| 228 | +| Ans – Low byte color |
| 229 | +| theta – High byte color |
| 230 | + |
| 231 | +DrawRect det(60, low, high, x, y, width, height) |
| 232 | +| Alt: det(60, os_color, x, y, width, height) |
| 233 | + |
| 234 | +DrawCircle det(61, low, high, x, y, radius) |
| 235 | +| Alt: det(61, os_color, x, y, radius) |
| 236 | + |
| 237 | +FillCircle det(62, low, high, x, y, radius) |
| 238 | +| Alt: det(62, os_color, x, y, radius) |
| 239 | + |
| 240 | +DrawArc det(63, low, high, x, y, radius, start_angle, end_angle) |
| 241 | +| Alt: det(63, os_color, x, y, start_angle, end_angle) |
| 242 | + |
| 243 | +DispTransText det(64, font, low, high, x, y) |
| 244 | +| font – 0 small, 1 large |
| 245 | +| Str9 – text to display |
| 246 | +| Alt: det(64, font, os_color, x, y) |
| 247 | + |
| 248 | +ChkRect det(65, x0, y0, width0, height0, x1, y1, width1, height1) |
| 249 | +| Ans – 0 rectangle does not intersect, 1 if intersection occurred |
| 250 | + |
| 251 | +PutChar det(66, font, fg_low, fg_high, bg_low, bg_high, x, y, char) |
| 252 | +| Refer to pages 31 and 32 for charts |
| 253 | + |
| 254 | +PutTransChar det(67, font, low, high, x, y, char) |
| 255 | +| Alt: det(67, font, os_color, x, y, char) |
| 256 | +| font 0 small, 1 large |
| 257 | + |
| 258 | +HorizLine det(68, low, high, x, y, length) |
| 259 | +| Alt: det(68, os_color, x, y, length) |
| 260 | + |
| 261 | +VertLine det(69, low, high, x, y, length) |
| 262 | +| Alt: det(69, os_color, x, y, length) |
| 263 | + |
| 264 | +RunAsmPrgm det(70) |
| 265 | +| Ans – Name of program to run |
| 266 | +| theta – error code returned or 0 if none |
| 267 | + |
| 268 | +LineToOffset det(71, line) |
| 269 | +| Str0 – Var name |
| 270 | +| theta – Returns byte offset of line |
| 271 | + |
| 272 | +OffsetToLine det(72, offset) |
| 273 | +| Str0 – Var name |
| 274 | +| theta – Returns line containing offset |
| 275 | + |
| 276 | +GetKey det(73) |
| 277 | +| Ans – Returns key value |
| 278 | +| Refer to page 39 for key table |
| 279 | + |
| 280 | +TurnCalcOff det(74) |
| 281 | + |
| 282 | +BackUpString det(75, Str#) |
| 283 | +| Str# - 0-9 |
| 284 | +| Does backup of Str# to be restored later |
| 285 | + |
| 286 | +RestoreString det(76, Str#) |
| 287 | +| Str# - 0-9 |
| 288 | +| Use only after using BackUpString! |
| 289 | + |
| 290 | +BackUpReal det(77, variable) |
| 291 | +| Variable – 1 A, 2 B, … 27 theta |
| 292 | + |
| 293 | +RestoreReal det(78, variable) |
| 294 | +| Variable – 1 A, 2 B, … 27 theta |
| 295 | +| Use only after using BackUpReal! |
| 296 | + |
| 297 | +SetParseLine det(79, line) |
| 298 | +| theta – Line jumped from |
| 299 | +| Jumps to line in prgm, think Goto w/out Lbl |
| 300 | + |
| 301 | +SetParseByte det(80, byte) |
| 302 | +| theta – Byte jumped from |
| 303 | +| Jumps to byte offset in prgm, similar to SetParseLine |
| 304 | + |
| 305 | +SwapFileType det(81) |
| 306 | +| Str0 – Variable name |
| 307 | +| Swaps variable between program and appvar |
| 308 | + |
| 309 | +PrgmCleanUp det(82) |
| 310 | +| Clears screen, fixes status bar |
0 commit comments