Skip to content

Commit 520880a

Browse files
Update readme
* Also fix archiving things
1 parent 4f2f867 commit 520880a

File tree

5 files changed

+45
-27
lines changed

5 files changed

+45
-27
lines changed

cesium.8xp

698 Bytes
Binary file not shown.

cesium_french.8xp

704 Bytes
Binary file not shown.

readme.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,23 @@ Once installed, the application cannot be transferred to other calculators. If y
2727

2828
### Controls
2929
Cesium provides a way to quickly jump to different programs in the program browser. Simply press one of the keys with a green letter above it, and it will take you to the first program with that starts with that letter.
30-
* [2nd/enter] - Run, select
31-
* [alpha] - Edit program options
32-
* [mode] - Enter settings menu
33-
* [up/down] - Move places
34-
* [Keys with green letters] - Alpha search
35-
30+
31+
| Combination | Action |
32+
|-----------------|--------------------------|
33+
| [2nd/enter] | Run, select |
34+
| [alpha] | Edit program options |
35+
| [mode] | Enter settings menu |
36+
| [up/down] | Move places |
37+
| [Green letters] | Alpha search for program |
38+
39+
### Shortcuts
40+
Shortcuts are available from the TI-OS system anywhere. Simply hold the [on] key and press the corresponding button to trigger the action.
41+
Available actions:
42+
43+
| Combination | Action |
44+
|-------------|---------------------------|
45+
| [on]+[prgm] | Launch Cesium Application |
46+
3647
### Running Programs
3748
Cesium can run programs written in ASM, C, ICE, or BASIC, either from the archive or not. It is prefered that you place programs in the archive, as it will protect them against RAM clears.
3849
To run a program, simply press [2ND] or [Enter]. After a program is finished running, it will return to Cesium.

src/cesium.8xp

-12.1 KB
Binary file not shown.

src/routines/pgrmoptions.asm

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -327,24 +327,10 @@ _j2:
327327
drawRectFilled(302,120+22,307,125+22)
328328
_j3:
329329
ret
330+
;-------------------------------------------------------------------------------
330331
SetOptions:
331-
ld hl,(prgmNamePtr)
332-
call NamePtrToOP1 ; if 255, archive it
333-
call _ChkFindSym
334-
call _ChkInRam
335-
push af
336-
ld a,(ArchiveSet)
337-
or a,a
338-
jr z,UnarchivePrgm
339-
ArchivePrgm:
340-
pop af
341-
call z,_Arc_Unarc
342-
jr CheckLock
343-
UnarchivePrgm:
344-
pop af
345-
call nz,_Arc_Unarc
346-
347332
;-------------------------------------------------------------------------------
333+
348334
CheckLock:
349335
ld hl,(prgmNamePtr)
350336
call NamePtrToOP1
@@ -353,16 +339,18 @@ CheckLock:
353339
or a,a
354340
jr z,UnlockPrgm
355341

356-
;-------------------------------------------------------------------------------
357342
LockPrgm:
358343
ld (hl),$06
359344
jr CheckHide
360345
UnlockPrgm:
361346
ld (hl),$05
347+
348+
;-------------------------------------------------------------------------------
349+
362350
CheckHide:
363351
ld hl,(prgmNamePtr)
364352
ld hl,(hl)
365-
dec hl ; bypass name totalPrgmSize byte
353+
dec hl ; bypass name totalPrgmSize byte
366354
ld a,(hl)
367355
cp a,64
368356
push af
@@ -371,15 +359,34 @@ CheckHide:
371359
jr z,Unhide
372360
Hide:
373361
pop af
374-
jr c,ReturnToMain ; already hidden
362+
jr c,CheckArchive ; already hidden
375363
sub a,64
376364
ld (hl),a
377-
jr ReturnToMain
365+
jr CheckArchive
378366
Unhide:
379367
pop af
380-
jr nc,ReturnToMain ; already hidden
368+
jr nc,CheckArchive ; already hidden
381369
add a,64
382370
ld (hl),a
371+
372+
;-------------------------------------------------------------------------------
373+
374+
CheckArchive:
375+
ld hl,(prgmNamePtr)
376+
call NamePtrToOP1 ; if 255, archive it
377+
call _ChkFindSym
378+
call _ChkInRam
379+
push af
380+
ld a,(ArchiveSet)
381+
or a,a
382+
jr z,UnarchivePrgm
383+
ArchivePrgm:
384+
pop af
385+
call z,_Arc_Unarc
386+
jr ReturnToMain
387+
UnarchivePrgm:
388+
pop af
389+
call nz,_Arc_Unarc
383390
ReturnToMain:
384391
jp MAIN_START_LOOP
385392

0 commit comments

Comments
 (0)