lucasw / amiga_assembly

Amiga assembly projects for use with Vasm
3 stars 0 forks source link

68000 simulator #8

Closed lucasw closed 6 years ago

lucasw commented 6 years ago

A few basic things aren't clear, a simulator will be easier to learn them than UAE.

http://www.easy68k.com/ works in wine

*-----------------------------------------------------------
* Title      :
* Written by :
* Date       :
* Description:
*-----------------------------------------------------------
    ORG    $1000
START:                  ; first instruction of program

* Put program code here
    move.l #$1234567,reg1
    move.b #$f1,reg1
    move.b #$f2,reg1+1
    move.l reg1,d0    

    SIMHALT             ; halt simulator

* Put variables and constants here
reg1 ds.l $0000

    END    START        ; last line of source
lucasw commented 6 years ago
    move.l #$00000000,reg1
    move.l #5,d2
addsome:
    add.b #$7f,reg1+2
    move.l reg1,d1
    dbra d2,addsome