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

Lee Patterson lee at 8bitcoder.com
Mon Apr 11 23:02:22 EDT 2016


Mark,
That worked perfectly. What's up with .list and .area?



> On Apr 11, 2016, at 1:43 AM, Mark McDougall <msmcdoug at iinet.net.au> wrote:
> 
> 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!"
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list