                        .module TESTPRINTF.c
                        .area text
                ;  lreg1 -> -4,x
                ;  lreg2 -> -8,x
                ;  IX -> 0,x
                ;              e -> +3,x
                ;              d -> +4,x
                ;              c -> +8,x
                ;              b -> +12,x
                ;              a -> +14,x
 0000           _main::
 0000 BD0000            jsr __enterb
 0003 90                .byte 0x90
 0004           ; 
 0004           ; #include <stdio.h>
 0004           ; 
 0004           ; void main (void)
 0004           ; {
 0004           ;  int a=0x03;
 0004 CC0003            ldd #3
 0007 ED0E              std 14,x
 0009           ;  short int b=0x02;
 0009 CC0002            ldd #2
 000C ED0C              std 12,x
 000E           ;  int long c=0x0455;
 000E 18CE00B0          ldy #L2
 0012 BD0000            jsr __ly2reg
 0015 EC00              ldd 0,x
 0017 C30008            addd #8
 001A 188F              xgdy
 001C BD0000            jsr __lreg2y
 001F           ;  float d=75.899;
 001F 18CE00AC          ldy #L3
 0023 BD0000            jsr __tofp1
 0026 EC00              ldd 0,x
 0028 C30004            addd #4
 002B 188F              xgdy
 002D BD0000            jsr __fromfp1
 0030           ;  char e='*';
 0030 C62A              ldab #42
 0032 E703              stab 3,x
 0034           ; 
 0034           ;         printf("%x\n",a);
 0034 EC0E              ldd 14,x
 0036 37                pshb
 0037 36                psha
 0038 CC00A8            ldd #L4
 003B BD0000            jsr _printf
 003E 1838              puly
 0040           ;         printf("%x\n",b);
 0040 EC0C              ldd 12,x
 0042 37                pshb
 0043 36                psha
 0044 CC00A8            ldd #L4
 0047 BD0000            jsr _printf
 004A 1838              puly
 004C           ;         printf("%xl\n",c);
 004C EC00              ldd 0,x
 004E C30008            addd #8
 0051 188F              xgdy
 0053 BD0000            jsr __ly2reg
 0056 183C              pshy
 0058 183C              pshy
 005A 1830              tsy
 005C BD0000            jsr __lreg2y
 005F CC00A3            ldd #L5
 0062 BD0000            jsr _printf
 0065 1838              puly
 0067 1838              puly
 0069           ;         printf("%f\n",d);
 0069 EC00              ldd 0,x
 006B C30004            addd #4
 006E 188F              xgdy
 0070 BD0000            jsr __tofp1
 0073 183C              pshy
 0075 183C              pshy
 0077 1830              tsy
 0079 BD0000            jsr __fromfp1
 007C CC009F            ldd #L6
 007F BD0000            jsr _printf
 0082 1838              puly
 0084 1838              puly
 0086           ;         printf("%c\n",e);
 0086 E603              ldab 3,x
 0088 4F                clra
 0089 37                pshb
 008A 36                psha
 008B CC009B            ldd #L7
 008E BD0000            jsr _printf
 0091 1838              puly
 0093           ; 
 0093           ; }
 0093           L1:
 0093 8F                xgdx
 0094 C30010            addd #16
 0097 8F                xgdx
 0098 35                txs
 0099 38                pulx
 009A                   .dbline 0 ; func end
 009A 39                rts
 009B           L7:
 009B 25630A00          .byte 37,'c,10,0
 009F           L6:
 009F 25660A00          .byte 37,'f,10,0
 00A3           L5:
 00A3 25786C0A00        .byte 37,'x,'l,10,0
 00A8           L4:
 00A8 25780A00          .byte 37,'x,10,0
 00AC           L3:
 00AC 4297CC4A          .word 0x4297,0xcc4a
 00B0           L2:
 00B0 00000455          .word 0,1109
