Clrhome
This page was last modified 11:16, 28 November 2018 by Gdx.

Description

Clrhome is a online assembler for the Z80 processor. This assembler uses a syntax a little different than standard. The syntax is similar to Spasm.

Assembler page: http://clrhome.org/asm/

About the syntax

  • Do not put anything behind the labels. (Go to the next line!)
  • Put a point in front of the statements: db, ds, dw, org, ...
  • "#define label adrs" replaces the usual "label equ adrs".
  • Hexadecimal values can be preceded by a dollar symbol ($), or starts with a digit end with H.
  • Binary values can be preceded by a percent symbol (%), or end with B.

Once your program has been entered, click on "BUILD" icon to assemble then click on "Download" to save the binary file resultant.

To save the source code, you must register on the site or copy it and paste into your favorite text editor.

Program Samples

;Sample to create a 16k ROM file (4000h~7FFFh)

	.db $41,$42
	.dw prgStart
	.dw 0,0,0,0,0,0
 
	.org $4000
 
prgStart:

; Replace this line with your program

prgEnd:
	.ds $8000-prgEnd
;Sample to create a command for MSX-DOS

	.org $100
	jp prgStart
prgInfo:
	.db "ProgramName v.x.x by YourName",0
prgStart:

; Replace this line with your program
 
prgEnd: