[Coco] Fooling around with assembly in RS-DOS environment

Mark McDougall msmcdoug at iinet.net.au
Mon Apr 11 01:43:51 EDT 2016


On 11/04/2016 2:31 PM, Lee Patterson wrote:

> Could I trouble you for a sample command line to
> compile a 6809 asm to a DECB binary using the AS compiler? Maybe a
> tiny hello world asm to go along with it if it is different then
> mine?

Note the "-t" option is the one that produces a Coco .BIN file.

----8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<---

         .list   (meb)
         .area   idaseg (ABS)

         .org    0x3f00

start:  ldx     #msg
1$:     lda     ,x+
         beq     2$
         jsr     [40962]
         bra     1$
2$:     rts

msg:    .asciz  "HELLO WORLD!\n"

         .end    start

----8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<---

as6809 -l -o -s hello.asm
aslink -i -t hello.rel

----8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<---

file2dsk hello.dsk hello.bin
mess64 coco3 -flop1 hello.dsk

Regards,

-- 
|              Mark McDougall              | "Electrical Engineers do it
|  <http://members.iinet.net.au/~msmcdoug> |   with less resistance!"


More information about the Coco mailing list