mirror of https://github.com/wwarthen/RomWBW.git
Browse Source
- ROMSIZE is now a configuration variable instead of a command line parameter. - Added CP/M license information based on new email from Bryan Sparks.pull/331/head v3.1.1-pre.180
29 changed files with 174 additions and 103 deletions
Binary file not shown.
Binary file not shown.
@ -0,0 +1,61 @@ |
|||||
|
; |
||||
|
;================================================================================================== |
||||
|
; HBIOS ENVIRONMENT EXPORT |
||||
|
;================================================================================================== |
||||
|
; |
||||
|
; Do we need a private stack??? |
||||
|
; Use a macro do dump each variable? |
||||
|
; |
||||
|
#include "std.asm" |
||||
|
; |
||||
|
.org $100 ; Normal CP/M start address |
||||
|
; |
||||
|
; Dump ROMSIZE |
||||
|
call PRTSTRD |
||||
|
#ifdef CMD |
||||
|
.text "set ROMSize=$" |
||||
|
#endif |
||||
|
#ifdef BASH |
||||
|
.text "ROMSIZE=$" |
||||
|
#endif |
||||
|
ld hl,ROMSIZE |
||||
|
call PRTDEC |
||||
|
call EOL |
||||
|
; |
||||
|
ret ; Return |
||||
|
; |
||||
|
; Output end-of-line. Handles differences between |
||||
|
; Windows CMD file and Bash. |
||||
|
; |
||||
|
EOL: |
||||
|
#ifdef CMD |
||||
|
ld a,13 |
||||
|
call COUT |
||||
|
#endif |
||||
|
ld a,10 |
||||
|
call COUT |
||||
|
ret |
||||
|
|
||||
|
; |
||||
|
; Print a single character from register A. |
||||
|
; This routine is required by the utility routines included below. |
||||
|
; |
||||
|
COUT: |
||||
|
push af |
||||
|
push bc |
||||
|
push de |
||||
|
push hl |
||||
|
ld e,a |
||||
|
ld c,2 |
||||
|
call $0005 |
||||
|
pop hl |
||||
|
pop de |
||||
|
pop bc |
||||
|
pop af |
||||
|
ret |
||||
|
; |
||||
|
; Include the utility routines |
||||
|
; |
||||
|
#include "util.asm" |
||||
|
; |
||||
|
.end |
||||
Loading…
Reference in new issue