2013-06-04, 11:28 PM
nitrofurano Wrote:thanks, but when testingOkay, so I do now know which one was not working... LD registerpair,(IX+offset) is invalid. Then this should work:
Code:sub cpymempaged(src as Uinteger,des as Uinteger,length as Uinteger,bank as ubyte): asm ld a,(ix+11) ld bc,32765 out (c),a ld hl,(ix+5) ld de,(ix+7) ld bc,(ix+9) ldir ld a,(23388) ld bc,32765 out (c),a end asm end sub sub cpymem(src as Uinteger,des as Uinteger,length as Uinteger): asm ld d,(ix+7) ld e,(ix+6) ld h,(ix+5) ld l,(ix+4) ld b,(ix+9) ld c,(ix+8) ldir end asm end sub cls cpymem(17000,12000,400) pause 0
i got from terminal:
Code:memcopytest.bas:5: Error: Syntax error. Unexpected token 'IX' [IX]
(btw, sorry about the offtopic... :S )
Code:
sub cpymempaged(src as Uinteger,des as Uinteger,length as Uinteger,bank as ubyte)
asm
ld a,(ix+11)
ld bc,32765
out (c),a
ld h,(ix+5)
ld l,(ix+4)
ld d,(ix+7)
ld e,(ix+6)
ld b,(ix+9)
ld c,(ix+8)
ldir
ld a,(23388)
ld bc,32765
out (c),a
end asm
end sub
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!

