Re: A86: Basic to Asm Variable Transfer


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

Re: A86: Basic to Asm Variable Transfer




>#include "ti86asm.inc"
>#include "asm86.h"
>       call _rclx
>       ld b,(_OP1)
>       call _rcly
>       ld c,(_OP1)
>       ld hl,sprite
>       call putsprite
>       ret
>Does anyone know how to get this to work?

#include asm86.h   ;<-----has to be first unless using the IDE
#include ti86asm.inc
init:   ;<-----have to have it under a label
	call _rclx
	call _convop1
	ld b,a
	call _rcly
	call _convop1
	ld c,a
	ld hl,sprite
	call putsprite
	ret
.end

Robby Gutmann
gutmann@planet-connect.com
ICQ UIN: 724927      Agonostis on IRC

Of course, Ankh-Morpork's citizens had always claimed that the river water
was incredibly pure. Any water that had passed through so many kidneys,
they reasoned, had to be very pure indeed.
	-- (Terry Pratchett, Sourcery)


References: