How to code in assembly and witch tool to do it

Page 2/3
1 | | 3

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 13:36

there are no executable ! how to do ? thx

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 18:21

How to use VASM ?

By ToriHino

Champion (383)

ToriHino's picture

19-08-2018, 18:57

I myself use Glass a Java based assembler for MSX, created by one of the members of this forum. Under Downloads you can find the jar file.

Below is a small example of an assembly file that creates a MSX binary file. It always starts with hex FE, followed by begin, end and start address.

  db 0FEH
  dw start, endadr, start

  org 0C000H
start:
  ; Your code here

  ; Return to basic 
  ret

endadr:
  end

Save the code as "hello.asm" and assemble it using the following commandline:
java -jar glass.jar "hello.asm" hello.bin

Now the generated "hello.bin" file can be loaded on the MSX using
BLOAD "HELLO.BIN",R

This command will load it to the begin address as specified in the asm (in this case hex C000). The ,R option means it also runs it, so jump to the start address as specified in the asm( in this case also hex C000).

Creating MSX-DOS compatible or ROM binaries looks slightly different but this should get you started for now.

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 20:21

there are no exe ! i don't know how to do....

By Grauw

Ascended (8515)

Grauw's picture

19-08-2018, 21:03

ToriHino wrote:

Creating MSX-DOS compatible or ROM binaries looks slightly different but this should get you started for now.

Hello World examples for BIN, COM & ROM

I haven’t used VASM, but these examples should apply to most Z80 assemblers using standard syntax.

sergio max wrote:

there are no exe ! i don't know how to do....

In addition to ToriHino’s example, see the manual (Glass needs Java, the jar file is the executable).

By Grauw

Ascended (8515)

Grauw's picture

19-08-2018, 21:09

sergio max wrote:

i use clrhome.org/Asm to developpe on RADIOLA VG5000µ

Looks somewhat similar to MSXPen

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 21:26

it use the prompt command ?

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 21:55

HOw! thanks a lot !

By sergio max

Rookie (24)

sergio max's picture

19-08-2018, 21:56

Grauw wrote:
sergio max wrote:

i use clrhome.org/Asm to developpe on RADIOLA VG5000µ

Looks somewhat similar to MSXPen

thanks a lot !

By keith56

Master (153)

keith56's picture

20-08-2018, 06:01

You can get my windows builds of VASM from my site, along with some quick documentation on how to use it,
Its command line based, I do my editing with Notepad++ , and have some build batchfiles linked to the execute command, so I can compile and run with a single function key, meaning its no slower than when I use winape
http://www.chibiakumas.com/z80/vasm.php

You want to get the PDF 'manuals on VASM if you really want to get into it, as there are lots of syntax options, output options and other features!

Page 2/3
1 | | 3