dev: growing this into the Zone OS project

The scope of this project is growing, mostly for fun. I doubt
I'll ever get to the point where I can actually use it on a real
Z80 system, but who knows. Mostly this is a good way to learn
about vasm and refresh my Z80 assembly knowledge.
This commit is contained in:
A.M. Rowsell 2025-12-20 17:58:51 -05:00
commit 94d6f474cd
Signed by: amr
GPG key ID: E0879EDBDB0CA7B1
7 changed files with 412 additions and 8 deletions

View file

@ -1,3 +1,5 @@
; SPDX-License-Identifier: MPL-2.0
; SPDX-FileCopyrightText: (c) 2025 A.M. Rowsell
; ============================================================
; Z80 Soft Float Library (4-byte) + Print + Parse (vasm syntax)
; ============================================================
@ -38,7 +40,7 @@
; ============================================================
; CODE
; ============================================================
.text
.section float
; ------------------------------------------------------------
; External routine you provide:
; printChar: prints ASCII character in A
@ -1613,7 +1615,7 @@ DIGLEN: .space 1
; 100000.0 = 143 43 50 00
; 1000000.0= 146 74 24 00
; ============================================================
.text
.section float
pow10_table:
.byte 127, 0x00, 0x00, 0x00 ; 10^0 = 1
.byte 130, 0x20, 0x00, 0x00 ; 10^1 = 10