Tuesday, November 18, 2014

Hello world assember 68k / as68

One more reminder to myself: the skeleton of assembler program
        text
        globl   _main
_main:
        move.b  #'*',d1
        move.w  #2,d0           * calling BDOS '2'
        trap    #2
        move.b  #'*',d1
        move.w  #2,d0           * calling BDOS '2'
        trap    #2
        move.b  #$0A,d1
        move.w  #2,d0           * calling BDOS '2'
        trap    #2
        move.b  #$0D,d1
        move.w  #2,d0           * calling BDOS '2'
        trap    #2
        rts

Assemble
AS68 hello.s
Link

LO68 -R -O hello.68K hello.O


No comments:

Post a Comment