- Top Stats

Top Posters Top Topic Starters Top Topics
TFM 35
Devilmarku... 34
Fessor 15
oobdoo 13
Marco 13
TFM 4
funkheld 4
oobdoo 3
Devilmarku... 2
Ludwig63 2
Suche Coder - 6825 Views Marco 22:53, 26 October 11
Scrolling &... - 4072 Views Leonie 15:08, 23 March 10
Stack Overflow... - 3745 Views Devilmarku... 22:15, 29 October 09
hallo, ich mö... - 3518 Views funkheld 17:33, 26 October 10
Mein Winterpro... - 3481 Views Fessor 15:18, 30 August 15


Author Topic: A small routine from BAS to ASM?  (Read 798 times)

0 Members and 1 Guest are viewing this topic.

Offline funkheld

  • CPC664
  • ***
  • Posts: 72
  • Liked: 1
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
----------------------------------------

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 846
  • Country: fr
  • Liked: 763
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 »

Offline funkheld

  • CPC664
  • ***
  • Posts: 72
  • Liked: 1
Re: A small routine from BAS to ASM?
« Reply #2 on: 10:32, 13 November 18 »
Hello thanks
Greeting