News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

A small routine from BAS to ASM?

Started by funkheld, 12:16, 12 November 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld


Hi good afternoon.


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

Targhan

#1
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.
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

funkheld


Powered by SMFPacks Menu Editor Mod