SDX Hello World#

General Information

Author: trub / DLT Ltd.
Assembler: masm
Download: http://trub.atari8.info

The idea is to show an example how the SDX system libraries can be used dynamically. The code shows the way to call and use "PRINTF". Using this technique the resulting object file can be very small and 100% system compliant.

PRINTF    smb 'PRINTF'

    blk reloc main

start    jsr PRINTF
    .byte $9b,'Hello world!',$9b,0

    jsr PRINTF
    .byte $9b,'My numbers:',$9b
    .byte '%b, %d, %x',$9b
    .byte '%e, %l',$9b,0
    .word bdec,wdec,whex,tdec,ldec
    rts

bdec    .byte $FF
wdec    .word $FFFF
whex    .word $FFFF
tdec    .long $FFFFFF
ldec    .word $FFFF,$FFFF 

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 03-Feb-2023 16:21 by Carsten Strotmann  
G’day (anonymous guest) My Prefs
© 2010-2021 AtariWiki
All content in the Wiki is licensed under Creative Commons Share Alike License, unless otherwise noted.
JSPWiki v2.8.3