EdouardBERGE / rasm

RASM powerful Z80 assembler
132 stars 16 forks source link

How do I compile a program written in ASM for the Amstrad CPC and run it on retro virtual machine? #38

Closed Reymon-Real closed 2 months ago

Reymon-Real commented 2 months ago

Although I see the documentation, I do not understand how to do it. On the one hand it compiles the program and I see the binary, but on the other hand it gives me a “.bin” file and I want a sna or dsk file. I saw the SAVE part but it always tells me that it does not find the file.

EdouardBERGE commented 2 months ago

There is some examples in the documentation to create snapshots

http://rasm.wikidot.com/dev:supersnap http://rasm.wikidot.com/keywords:memory

I'm not the author of RVM so i cannot help you with this emulator. Use ACE-DL :p http://www.roudoudou.com/ACE-DL/ It will benefit extra informations of the snapshot

Reymon-Real commented 2 months ago

@EdouardBERGE Thanks, I don't understand the documentation on the sna and dsk part. Here is what I have in my Makefile to see what my error is.

src := src bin := bin rasm := rasm_win64

all: @$(rasm) -I $(src) -utf8 -sw -o $(bin)/main main.asm @$(rasm) -I $(bin) -utf8 -eo main.bin @RetroVirtualMachine

EdouardBERGE commented 2 months ago

once rasm has compiled your main.asm, there is nothing to do with the binary main.bin (except putting it in an emulator) you must add in your main.asm some lines (to output a file, a snapshot or a DSK, don't know what you want)

Reymon-Real commented 2 months ago

@EdouardBERGE I didn't understand that, I really wanted to make a sna, but I didn't understand how, so I tried to make a dsk. It didn't work either and I read the documentation for quite a while until I finally gave up and came to ask.

EdouardBERGE commented 2 months ago
buildsna
bankset 0
org #100
run #100
; your assembly code here

this will generate a snapshot see the links i sent you for explanations of each directives

Reymon-Real commented 2 months ago

@EdouardBERGE Thank you very much