home *** CD-ROM | disk | FTP | other *** search
- ;************************************************************************
- ;* BDOS Character-I/O Subroutines *
- ;************************************************************************
-
- entry _bdosin, _bdosout, _bdossts
-
- .z80 ;
- saveobc macro ;
- push de ;
- push hl ;
- push ix ;
- push iy ;
- endm ;
-
- restore macro ;
- pop iy ;
- pop ix ;
- pop hl ;
- pop de ;
- pop bc ;
- endm ;
-
- _bdosin: push bc ;
- ld c,1 ; Console input
- jr bdoscall ;
-
- _bdossts: push bc ;
- ld c,11 ; Console status
- jr bdoscall ;
-
- _bdosout: push bc ;
- ld c,2 ; Console output
-
- bdoscall: saveobc ; die restlichen Register retten
- ld e,a ; falls Console out
- call 5 ;
- or a ; falls Console status
- restore ;
- ret ;
-
- end ;