Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
* Also fix archiving things
  • Loading branch information
mateoconlechuga committed Oct 12, 2017
1 parent 4f2f867 commit 520880a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 27 deletions.
Binary file modified cesium.8xp
Binary file not shown.
Binary file modified cesium_french.8xp
Binary file not shown.
23 changes: 17 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,23 @@ Once installed, the application cannot be transferred to other calculators. If y

### Controls
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.
* [2nd/enter] - Run, select
* [alpha] - Edit program options
* [mode] - Enter settings menu
* [up/down] - Move places
* [Keys with green letters] - Alpha search


| Combination | Action |
|-----------------|--------------------------|
| [2nd/enter] | Run, select |
| [alpha] | Edit program options |
| [mode] | Enter settings menu |
| [up/down] | Move places |
| [Green letters] | Alpha search for program |

### Shortcuts
Shortcuts are available from the TI-OS system anywhere. Simply hold the [on] key and press the corresponding button to trigger the action.
Available actions:

| Combination | Action |
|-------------|---------------------------|
| [on]+[prgm] | Launch Cesium Application |

### Running Programs
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.
To run a program, simply press [2ND] or [Enter]. After a program is finished running, it will return to Cesium.
Expand Down
Binary file removed src/cesium.8xp
Binary file not shown.
49 changes: 28 additions & 21 deletions src/routines/pgrmoptions.asm
Original file line number Diff line number Diff line change
Expand Up @@ -327,24 +327,10 @@ _j2:
drawRectFilled(302,120+22,307,125+22)
_j3:
ret
;-------------------------------------------------------------------------------
SetOptions:
ld hl,(prgmNamePtr)
call NamePtrToOP1 ; if 255, archive it
call _ChkFindSym
call _ChkInRam
push af
ld a,(ArchiveSet)
or a,a
jr z,UnarchivePrgm
ArchivePrgm:
pop af
call z,_Arc_Unarc
jr CheckLock
UnarchivePrgm:
pop af
call nz,_Arc_Unarc

;-------------------------------------------------------------------------------

CheckLock:
ld hl,(prgmNamePtr)
call NamePtrToOP1
Expand All @@ -353,16 +339,18 @@ CheckLock:
or a,a
jr z,UnlockPrgm

;-------------------------------------------------------------------------------
LockPrgm:
ld (hl),$06
jr CheckHide
UnlockPrgm:
ld (hl),$05

;-------------------------------------------------------------------------------

CheckHide:
ld hl,(prgmNamePtr)
ld hl,(hl)
dec hl ; bypass name totalPrgmSize byte
dec hl ; bypass name totalPrgmSize byte
ld a,(hl)
cp a,64
push af
Expand All @@ -371,15 +359,34 @@ CheckHide:
jr z,Unhide
Hide:
pop af
jr c,ReturnToMain ; already hidden
jr c,CheckArchive ; already hidden
sub a,64
ld (hl),a
jr ReturnToMain
jr CheckArchive
Unhide:
pop af
jr nc,ReturnToMain ; already hidden
jr nc,CheckArchive ; already hidden
add a,64
ld (hl),a
;-------------------------------------------------------------------------------

CheckArchive:
ld hl,(prgmNamePtr)
call NamePtrToOP1 ; if 255, archive it
call _ChkFindSym
call _ChkInRam
push af
ld a,(ArchiveSet)
or a,a
jr z,UnarchivePrgm
ArchivePrgm:
pop af
call z,_Arc_Unarc
jr ReturnToMain
UnarchivePrgm:
pop af
call nz,_Arc_Unarc
ReturnToMain:
jp MAIN_START_LOOP

Expand Down

0 comments on commit 520880a

Please sign in to comment.