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
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: 1 Guest(s)