A83: SOS ASM Program running...


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

A83: SOS ASM Program running...




How many times does SOS push stuff to the stack that gets popped after
wards? I count 3 times, so why doesn't this code eleviate this problem?
It should place a value beyond the SOS used one so that I can pop it
from a different program... Serves as a method to transfer a value, it
may not be good (or correct, cause I have a different way now) but it is
just something that is bugging me.

	xor	a
	jr	start
	.dw $0000
	.dw orgdescription
start:
	pop hl
	ld (tempspace), hl
	pop af
	pop bc
	pop hl
	ld de, $2222
	push de
	push hl
	push bc
	push af
	ld hl, (tempspace)
	jp (hl)
orgdescription .db "test!",0
tempspace .db $0


-- 
Scott "_Wrath_" Dial
homosapian@geocities.com
ICQ#3608935
http://www.geocities.com/~homosapian/