From 9013cff6b1bada76323dbc35704c42f3405a283c Mon Sep 17 00:00:00 2001 From: maddiebaka Date: Sat, 15 Aug 2026 17:58:12 -0400 Subject: [PATCH] Move buffers out of zero page --- bme280_util.z80 | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/bme280_util.z80 b/bme280_util.z80 index e0094af..c6d8f95 100644 --- a/bme280_util.z80 +++ b/bme280_util.z80 @@ -16,10 +16,6 @@ conin equ 01h char_idx equ 10h -temperature equ 20h -humidity equ 30h -pressure equ 40h - start: call init_lcd call init_siob @@ -46,6 +42,7 @@ start: main: call read_char_b call parse_char + ;call lcd_delay ;call print_char_to_lcd ld c,11 call bdos @@ -97,6 +94,7 @@ delay1: convert_to_hpa: ld a,(pressure) + ret read_char_b: wait: @@ -134,6 +132,15 @@ print_telem_to_lcd: call move_to_tempaddr ld hl,temperature call print_str_to_lcd + + call move_to_presaddr + ld hl,pressure + call print_str_to_lcd + + call move_to_humidaddr + ld hl,humidity + call print_str_to_lcd + ld a,1h out (0),a ret @@ -195,21 +202,25 @@ move_to_tempaddr: ld a,85h out (lcd_ctrl),a ld a,c + call lcd_delay ret move_to_presaddr: ld a,0c1h out (lcd_ctrl),a + call lcd_delay ret move_to_humidaddr: ld a,99h out (lcd_ctrl),a + call lcd_delay ret clabel: DB 'degree C',0 plabel: DB 'pascal',0 hlabel: DB '% RH',0 - end start - +temperature: DS 16 +humidity: DS 16 +pressure: DS 16