The ultimate Amstrad CPC community!
News:
Home
Help
Login
Register
CPCWiki forum
»
Deutsches CPC-Forum
»
Programmierung
»
A small routine from BAS to ASM?
1
Likes
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: A small routine from BAS to ASM? (Read 3210 times)
0 Members and 1 Guest are viewing this topic.
funkheld
CPC664
Posts: 117
Liked: 7
Likes Given: 0
A small routine from BAS to ASM?
«
on:
13:16, 12 November 18 »
Hi good afternoon.
How will this be written in ASM?
-----------------------------------------
POKE & B7C6, &40
CALL & BC06, &40
----------------------------------------
Logged
Targhan
Supporter
6128 Plus
Posts: 960
Country:
Liked: 920
Likes Given: 141
Re: A small routine from BAS to ASM?
«
Reply #1 on:
13:33, 12 November 18 »
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.
«
Last Edit: 13:35, 12 November 18 by Targhan
»
Logged
ComSoft6128
likes this
Targhan/
Arkos
Arkos Tracker 2 - alpha 7 now released!
- Follow the news on
Twitter
!
Disark
A cross-platform Z80 disassembler/source converter
Imperial Mahjong
Orion Prime
funkheld
CPC664
Posts: 117
Liked: 7
Likes Given: 0
Re: A small routine from BAS to ASM?
«
Reply #2 on:
10:32, 13 November 18 »
Hello thanks
Greeting
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
CPCWiki forum
»
Deutsches CPC-Forum
»
Programmierung
»
A small routine from BAS to ASM?