[A83] Re: program writeback


[Prev][Next][Index][Thread]

[A83] Re: program writeback




The $BB,$6D bytes get taken into the program too...
so it's six bytes after the start of the program to the keys section.





On Mon, 20 May 2002, SUCKER [Pieter Van Nuffel] wrote:

> 
>     .org progstart-2
>     .db $BB,$6D	; 2 bytes
> 
> 	jr start	; 3 bytes
> ;++++++++++++++++++++++
> 	.db 3		; 1 byte
> keys:
> 	.db 38			;<SIN>
> 	.db 30			;<COS>
> 	.db 22			;<TAN>
> 	.db 0			; -> are the default keys
> 	.db 0			;
> 	.db 0			;
> 	.db 0			;
> ;+++++++++++++++++++++
> 
> start:
> 	ld ix,$saferam1
> 	bcall(_indicatorOff)	;
> 	call shutdown		;
>         [...]
> 
> -----------------------------------
> 
> And this piece of code searches prgmZSUCWELC
> and copies the amount of keys and the keys to prgmZSUCWELC
> 
> -----------------------------------
> 
> store:
>      	ld hl,prog              ;search for prgm zsucwelc
>      	bcall(_mov9toop1)       ;
>      	bcall(_chkfindsym)      ;
> 	ret c			;
> 	inc de
>         inc de
>         inc de
>         inc de
> 
> 	ld hl,keys2		;keys2=inside saferam1
> 	ld bc,8			;
> 	ld a,(keys2)		;
> 	ld c,a			;
> 	inc c			;
> 	ldir			;
> 	ret			; return to TI-OS
> 
> 
> prog:   .db   5,"ZSUCWELC",0
> 
> -----------------------------------
> 
>       SUCKER [Pieter Van Nuffel]
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 




References: