/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/lib2/scanf.s
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/lib2/scanf.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1154 - (show annotations)
Sun Aug 10 18:19:54 2014 UTC (5 years, 3 months ago) by dbug
File size: 380 byte(s)


1 ;
2 ; scanf(const char *format,...)
3 ;
4
5 ; it seems difficult to avoid adding a buffer to the unbuffered Oric input,
6 ; this consumes a lot of space, but how to do it differently ?
7
8 scanbuf reserve 256
9
10 _scanf
11 lda #<scanbuf
12 sta tmp
13 lda #>scanbuf
14 sta tmp+1
15 jsr gets
16 lda #<scanbuf
17 sta loadchar+1
18 lda #>scanbuf
19 sta loadchar+2
20 ldy #0
21 jmp scanf

  ViewVC Help
Powered by ViewVC 1.1.26