2014-03-04 17:42:51 -08:00
|
|
|
|
|
|
|
|
|
|
|
| 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 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* AS65 notes
|
|
|
|
https://github.com/Klaus2m5/6502_65C02_functional_tests/blob/master/6502_functional_test.a65
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2014-05-23 16:53:46 -07:00
|
|
|
|
|
|
|
* 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"
|
2014-06-03 08:46:49 -07:00
|
|
|
|
|
|
|
** 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"
|
2014-08-05 22:18:17 -07:00
|
|
|
|
|
|
|
* Sweet 16
|
|
|
|
http://amigan.1emu.net/kolsen/programming/sweet16.html
|
|
|
|
http://twimgs.com/informationweek/byte/archive/Apple-II-Description/The-Apple-II-by-Stephen-Wozniak.pdf
|