From 91d7f60bff48cb4ae5ea36717604e27fa8a41a7f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 17 Jan 2017 23:25:09 -0500 Subject: [PATCH] fix stdio test some more. --- samples/stdio_test.c | 5 + samples/stdio_test.lst | 866 +++++++++++++++++++++-------------------- samples/stdio_test.obj | Bin 1000 -> 1002 bytes 3 files changed, 444 insertions(+), 427 deletions(-) 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 2s1m