1
0
mirror of https://github.com/zellyn/go6502.git synced 2024-11-05 07:04:41 +00:00
go6502/asm/asm.org
2014-06-03 08:46:49 -07:00

4.2 KiB
Raw Blame History

Concept SCSC AS65 Merlin
origin .OR org
target address .TA
include .IN
comment * ;
>1 space
label at left
equ .EQ =
equ
binary %00000001
macro .MA macro_name macro_name macro
.EM endm
if .DO if foo = 1
.ELSE endif
[.ELSE] (toggle)
.FIN
data
- word (LE) .DA expr
- byte (LSB) .DA #expr
- byte (MSB) .DA /expr
ascii string
- normal use .AS "foo"
- arb. delimeter .AS dfood
- high bit set .AS -"foo"
- last high bit opposite .AT "foo"
hex string .HS
reserve space (block storage) .BS <bytes>

Things to ignore

Concept SCSC AS65
title .TI <lines/page>,title
file .TF filename

SCSC notes

.DO Conditional Assembly 5-9 .ELSE Conditional Assembly 5-9 .FIN Conditional Assembly 5-9 .MA Macro Definition 5-11 .EM End of Macro 5-11

Edasm notes

http://mirrors.apple2.org.za/ftp.apple.asimov.net/images/programming/assembler/EDASM.DSK

How to run

Boot from the disk type "- edasm.system"

Differences from manual

The manual claims that "MSB ON" is the default.

:ASM FOO.TXT SOURCE FILE #01 =>FOO.TXT 0000:41 42 43 1 ASC "ABC" 0003: 2 MSB OFF 0003:41 42 43 3 ASC "ABC" 0006: 4 MSB ON 0006:C1 C2 C3 5 ASC "ABC"