Re: A86: detokenizer


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

Re: A86: detokenizer




oh yes, sweet!  thanks!

you can also insert the zero before calling detok because it starts at
the editcursor: (then you don't need to call _bufToTop)
	call _setupEditEqu
	xor a
	call _bufInsert
	call _detok

-josh

On Sat, 8 Jan 2000 23:18:47 EST ComAsYuAre@aol.com writes:
>
>Ok I actually got this detokenizer working!  This is mainly for Josh 
>but I 
>thought I'd send it to the whole list :P
>
>#include "TI86.inc"
>
>.org _asm_exec_ram
>
>    ld hl,name-1
>    rst 20h
>    rst 10h
>    ret c
>
>    call _setupEditequ  ;set up editor
>    call _detok         ;this _does_ detokenize the prog, but it 
>leaves out 
>the leading signature byte so it appears corrupt if left this way
>    call _bufToTop      ;move the buffer to top
>    xor a
>    call _bufInsert     ;and insert a null char, which signifies 
>untokenized
>    jp _closeEditequ    ;close editor
>
>name:
>    .db 2,"AA"
>
>
>----
>Jonah Cohen
><ComAsYuAre@aol.com>
>http://linux.hypnotic.org/~jonah/
>

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.