The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE STRING and @string$
#13
While we are there. How about this?
Code:
sub FillMem(mem as Uinteger,size as Uinteger,byt as Ubyte) asm ld h,(ix+5) ld l,(ix+4) ld d,(ix+5) ld e,(ix+4) inc de ld b,(ix+7) ld c,(ix+6) dec bc ld a,(ix+9) ld (hl),a ldir end asm end sub paper 7:ink 0:cls do FillMem(16384,6144,85) asm halt end asm FillMem(16384,6144,170) asm halt end asm loop until inkey$<>""
I think, this may be usefull for some coders here too. But I'm just playing around...
Edit: replacing
Code:
ld d,(ix+5) ld e,(ix+4)
with
Code:
ld de,hl
should work too and save some bytes.
Code:
sub FillMem(mem as Uinteger,size as Uinteger,byt as Ubyte) asm ld h,(ix+5) ld l,(ix+4) ld de,hl inc de ld b,(ix+7) ld c,(ix+6) dec bc ld a,(ix+9) ld (hl),a ldir end asm end sub
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)