Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Proportional pixel-precise printing anywhere on screen
#5
britlion Wrote:Instead of poking to bytes:

POKE uinteger @datastore, data
datastore:
asm
defb 0,0
...
...
...
LD HL, (DATASTORE)


I got it to do self modifying code so that it poked it to the line that has:

LD HL, NNNN

It saves storage bytes, actually - and LD HL, NN is 10 T states. LD HL,(NN) is 16.

I do that in my Z80 programs. Why have a separate zone for values, if I can store them right into the instructions? Faster and more compact. Maybe the legibility suffers a bit, but it's worthwhile, especially for huge and complex programs where speed and memory are critical.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)