Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a73a7c73c | |||
| 08e45cad7b | |||
| 2ad180fc17 | |||
| 12901a1c09 |
+7
-7
@@ -2,18 +2,18 @@
|
||||
This page has information relating to developers and what they can and cannot use.
|
||||
|
||||
### Contents:
|
||||
System Varibles
|
||||
System Variables
|
||||
Modules
|
||||
Built-In Calls and Labels
|
||||
|
||||
## System Varibles
|
||||
## System Variables
|
||||
NOS has a decent amount of system varibles and labels that cannot be overwritten. Below is a list of them and their location (what subprogram they are in) and whether or not they can be overwritten.
|
||||
|
||||
### NOSSPRIT
|
||||
No Varibles
|
||||
No Variables
|
||||
|
||||
### NOSHEAD
|
||||
No Varibles
|
||||
No Variables
|
||||
|
||||
### NOSSRH
|
||||
FILES - This has the program names and the data. This is in the format of a 17 byte set as seen below: - DO NOT OVERWRITE -
|
||||
@@ -35,10 +35,10 @@ SIZE - Size of first program, this may be overwritten after the program is switc
|
||||
ARC - Archive status of the first program, this may be overwritten after the program is switched
|
||||
|
||||
### NOSGUI
|
||||
No varibles
|
||||
No variables
|
||||
|
||||
### NOSCTRL
|
||||
G - getKey varible, overwrite at your own risk
|
||||
G - getKey variable, overwrite at your own risk
|
||||
prgmTEMP - Temporary program for running ASM and BASIC programs
|
||||
prgmASM - ASM program data for running
|
||||
SLOT - Selected Program Slot, overwrite at your own risk
|
||||
@@ -53,7 +53,7 @@ L5 - Color / Settings Data, formated as below:
|
||||
LOC - Location of cursor on menu
|
||||
|
||||
### NOSPROG
|
||||
No Varibles
|
||||
No Variables
|
||||
|
||||
### NOSSUB
|
||||
B, ICONX, ICONY, ICONCHAR, ICONCOLOR, SET, STATUS, POS - Temporary Varibles, may be overwritten
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
.nolist
|
||||
#include "ti84plusce.inc"
|
||||
.list
|
||||
|
||||
.org userMem
|
||||
.db $EF,$7B
|
||||
|
||||
hook_addr = appBackupScreen
|
||||
|
||||
start:
|
||||
ld hl, hook_start
|
||||
ld de, hook_addr
|
||||
push de
|
||||
ld bc, hook_end-hook_start
|
||||
ldir
|
||||
pop hl
|
||||
ld a, 1
|
||||
call _SetGetKeyHook
|
||||
ret
|
||||
|
||||
hook_start:
|
||||
.db $83
|
||||
bit editOpen, (iy+editFlags)
|
||||
ret z
|
||||
cp kWindow ;if y= wasn't pressed, check if we should uninstall hook
|
||||
jr nz, disableHook
|
||||
ld hl, hook_addr + varname - hook_start
|
||||
call _Mov9toOP1
|
||||
call _ChkFindSym
|
||||
jr c, disableHook ;if prgm doesn't exist
|
||||
ld hl,$0055
|
||||
ld (saveSScreen),hl
|
||||
ld (OP1+1),hl
|
||||
ld hl,saveSScreen+4
|
||||
ex de,hl
|
||||
ld c,(hl)
|
||||
inc hl
|
||||
ld b,(hl)
|
||||
inc hl
|
||||
ld (saveSScreen+2),bc
|
||||
ldir
|
||||
ld a,5
|
||||
ld (OP1),a
|
||||
call _ChkFindSym
|
||||
jr c,$+5
|
||||
call _DelVarArc
|
||||
ld a,5
|
||||
ld hl,saveSScreen
|
||||
call _ExecuteNewPrgm
|
||||
ld a, 0
|
||||
ret
|
||||
|
||||
disableHook:
|
||||
cp kGraph
|
||||
ret nz
|
||||
call _ClrRawKeyHook
|
||||
; ld a, 0 ;pressing Graph continues to the graph screen
|
||||
ret
|
||||
|
||||
varname:
|
||||
.db ProgObj, "NOS", 0, 0
|
||||
hook_end:
|
||||
Reference in New Issue
Block a user