diff --git a/samples/stdio_test.c b/samples/stdio_test.c index bd669a6..3318047 100644 --- a/samples/stdio_test.c +++ b/samples/stdio_test.c @@ -5,6 +5,11 @@ void main(void) { FILE *fp; + #asm + phk + plb + #endasm + fputs("hello, world\n", stdout); fp = fopen("file.txt", "wb"); diff --git a/samples/stdio_test.lst b/samples/stdio_test.lst index 43d15ca..dc55377 100644 --- a/samples/stdio_test.lst +++ b/samples/stdio_test.lst @@ -1,4 +1,4 @@ - Tue Jan 17 2017 23:13 Page 1 + Tue Jan 17 2017 23:24 Page 1 *************************************** @@ -31,456 +31,468 @@ 22 00:0007: 5B tcd 23 ; FILE *fp; 24 ; - 25 ; fputs("hello, world\n", stdout); + 25 ; #asm 26 00000000 fp_1 set 0 - 27 00:0008: A9 xx xx lda #<~~_iob+20 - 28 00:000B: 85 01 sta >16 - 31 00:0010: 85 03 sta >16 + 40 00:0012: 85 03 sta