[A86] Re: Hey all.. I need you help,


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

[A86] Re: Hey all.. I need you help,




I just make it work..

If somone is interested:
Here is the code for a sqrt program that hook up the os when somone press [enter] and it parse the current input(eg 2+2), BTW, this prog disable the 

#define crtasm(x) x-code+_asm_exec_ram-2

code:

codestart:
    .db     $8e,$28             ;necessary at start of sqrt progs

    ld      a,(_asm_reg_a)
	cp	06h
	
	jp	z,crtasm(parseIt)
    
    ld	bc,(_asm_reg_bc)
    
    ld	a,(_asm_reg_a)
end:    
    cp      a
    ret


parseIt:
	call	_closeEditBufNoR		;5016h

	ld	hl,crtasm(EditName)
	rst	20h

	call	_parseInp
	
	call	_newline	

	call	_dispOP1
			
	ld	hl,crtasm(EditName)
	rst	20h
	rst	10h
	call	_delvar
	
	ld	hl,0
	call	_createprog

	ld	hl,crtasm(EditName)
	rst	20h
	rst	10h
	
	call	_setEmptyEditPtr	;Edit buffer reopen

	ld	a,1	
	cp	0
	ret

EditName:
	.db	5h,1h,"!"

Hope that will interest somone.. From this will probably be the start of my rpn parser on the 86 :) 

Xavier LaRue


On Mon, 3 Jun 2002 19:18:44 -0700
rabidcow@juno.com wrote:

> 
> 
> On Sun, 2 Jun 2002 22:22:03 -0400 Xavier LaRue <paxl@videotron.ca>
> writes:
> > 
> > I was trying to parse the home screen input program(5,1,"!")..
> 
> What do you mean?
> 
> > So can somone help me to get this code work ?
> 
> Does this code work for an 83+?  Or is it directly ported from something
> that does?
> 
> -josh
> 
> > 
> > Thank you all for your time
> > Xavier LaRue
> > 
> > BTW, I want to use this code in a sqrtHOME Rpn parser
> > 
> > 
> 
> ________________________________________________________________
> GET INTERNET ACCESS FROM JUNO!
> Juno offers FREE or PREMIUM Internet access for less!
> Join Juno today!  For your FREE software, visit:
> http://dl.www.juno.com/get/web/.
> 



References: