Deutsches CPC-Forum > Programmierung

A small routine from BAS to ASM?

(1/1)

funkheld:

Hi good afternoon.


How will this be written in ASM?
-----------------------------------------
POKE & B7C6, &40
CALL & BC06, &40
----------------------------------------

Targhan:
Unless I'm wrong:
ld a,#40
ld (#b7c6),a
ld de,#40
call #bc06


The last parameter in the Basic "call xxx,yy,zz,aa,bb..." is put in DE. A is charged with the number of parameter after the call address itself.

funkheld:
Hello thanks
Greeting

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Reactions Mod
Powered by SMFPacks Alerts Pro Mod
Powered by SMFPacks Mentions Pro Mod