News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Asm code issue

Started by nico24, 19:52, 09 June 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nico24

Hi all,
I typed in this ASM code from Amstrad Seminal. It is pretty short (it is in Spanish). When i run it I just get the standard Amstrad coloured weirdness.
Any ideas where I'm going wrong? I can post the original code screen capture if you need.
The only thing I can think in terms of copying the printed article is 8 and Bs being wrong. All other characters have been checked.

AMSDOS


Maybe it's just where the program needs to be called, so in my ASM game the Execution Address is where I conveniently put ORG &8000, but in this example there's what appears to be a whole bunch of routines, 10 memory variables and then this bit of code:



;Colocar tlraguisantes
LD HL,#C230
LD (nuevo),HL
LD HL,#90DC
LD (nuevod),HL
LD HL,#0518
LD (filas),HL
CALL situar



it's got no label name before it and the last routine before the addressed variables:




c2:
ADD A,E
LD E,A
LD A,(HL)
SUB E
RET





has a return. So it looks like the execution address will be at where it has ;Colocar tlraguisantes
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

nico24

Thanks - I'll have a look at that. It makes sense. I'll see if the original article mentions anything too.

rpalmer

nico24,

It looks like you have relocatable code.

rpalmer

Powered by SMFPacks Menu Editor Mod