For asm guys, the fast way to do this...

Page 2/2
1 |

Par flyguille

Prophet (3031)

Portrait de flyguille

03-06-2011, 23:37

In some situations could be even like this, if the table content can be trashed (or is in ROM?) Smile

ld sp,hl (6+1)
ex (sp),hl (4+1)

ex (sp),hl = 4+1? no way, checks your timming.

that function is 19 + 1

ex (sp),hl 19 (4, 3, 4, 3, 5)

Par Marq

Champion (387)

Portrait de Marq

03-06-2011, 23:40

It seems the reference I've been using for years sux Sad

http://www.ticalc.org/pub/text/z80/z80instr.txt

Par Eugeny_Brychkov

Paragon (1232)

Portrait de Eugeny_Brychkov

03-06-2011, 23:49

ex (sp),hl (4+1)
Unfortunately it is 19+1.

Par PingPong

Prophet (4093)

Portrait de PingPong

04-06-2011, 02:22

thx to all i will try. teoretically i can use eugeny tecnique, because my code run on VBLANK ISR and i can safely disable ints, because the entire code must complete before the next int..

Page 2/2
1 |