Crossassembler SBASM3

https://www.sbprojects.net/sbasm/quickstart.php
https://github.com/sbprojects/sbasm3)

Installation

git clone https://github.com/sbprojects/sbasm3.git 
mv sbasm3 /opt/ 
chown root:users /opt/sbasm3 -Rf 
chmod 775 /opt/sbasm3 -Rf 
ln -s /opt/sbasm3/sbasm /usr/bin/sbasm

Erster Test

Assemblerprogramm in einem Editor schreiben

dk2@darkstar:~/Dokumente/programme/capri$ cat cp-001-test.asm
       .CR   Z180                 Z180 Cross-Overlay
       .TF   CP001test.hex,INT    Zieldatei: in Intel Hex format
                                  ; Kommentar ohne mnemonics  vorne
       .OR   $0000                Program starts at this address
start:  JP      start
 
dk2@darkstar:~/Dokumente/programme/capri$

Assemblieren

dk2@darkstar:~/Dokumente/programme/capri$ sbasm cp-001-test.asm
 
SB-Cross Assembler version 3.03.06
Please visit www.sbprojects.net for a complete description.
 
Assembling....
 
Pass one
Loaded z180 overlay version 3.01.02
 
Pass two
0000-                  1               .CR   Z180                 Z180 Cross-Overlay
0000-                  2               .TF   CP001test.hex,INT    Zieldatei: in Intel Hex format
0000-                  3                                          ; Kommentar ohne mnemonics  vorne
0000-                  4               .OR   $0000                Program starts at this address
0000-C3 00 00          5 (  9) start:  JP      start
0003-                  6
 
0 Errors found during assembly.
0 Warnings found during assembly.
 
dk2@darkstar:~/Dokumente/programme/capri$

Object Datei sichten

dk2@darkstar:~/Dokumente/programme/capri$ hexdump CP001test.hex
0000000 303a 3033 3030 3030 4330 3033 3030 3330
0000010 0a41 303a 3030 3030 3030 4631 0a46
000001e
dk2@darkstar:~/Dokumente/programme/capri$

Object Datei in EEPROM schreiben

Hier kommt unser Super komplexes Testprogramm… eine Schleife…. springe nach da wo du gerade warst