On Thu, 24 Jul 2025 16:57:37 -0700 (PDT)
AngelaTheSephira wrote:
> Alright, so I integrated the code that did work into my own testing
> program, and now it does something really strange - it freezes until
> you hit return, and then it continues as expected. It also lets you
> type in a single character and backspace it to replace it with a
> different one, but it doesn't seem to affect the actual buffer
> contents? Again, assembler is ZSM4 and the OS is ZPM3...
Stripping out everything up to and including 'org 0100h', and
assembling with zmac and linking with zml, here's the result:
A2:SOURCE>>zmac test.z80
ZMAC Relocating Macro Assembler v 1.7, 04/09/93
Copyright 1988,1989 by A.E. Hawley
A2:SOURCE>>zml test.rel
ZML Linker V2.0- 04/01/93
Output file: A2:
TEST.COM
LOAD_ADDR: RELOC_ADDR:
SEGMENT SIZE START STOP
CSEG 00D7 0100 01D6
Memory unused by linker..
FREE B63B 2DC4 E3FE
A2:SOURCE>>dump
test.com
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF
0100 01 30 00 1E 30 3E 00 21 A7 01 09 77 0B 1D C2 07 .0..0>.!...w....
0110 01 3E FF 32 A7 01 0E 09 11 7D 01 CD 05 00 0E 0A .>.2.....}......
0120 11 A7 01 CD 05 00 CD 40 01 0E 09 11 64 01 CD 05 .......@....d...
0130 00 21 A8 01 46 11 A9 01 CD 4D 01 0E 00 CD 05 00 .!..F....M......
0140 0E 02 1E 0A CD 05 00 1E 0D CD 05 00 C9 1A 13 CD ................
0150 57 01 05 C2 4D 01 C9 C5 D5 E5 5F 0E 02 CD 05 00 W...M....._.....
0160 E1 D1 C1 C9 54 68 65 20 74 65 78 74 20 79 6F 75 ....The text you
0170 20 74 79 70 65 64 20 77 61 73 3A 20 24 50 6C 65 typed was: $Ple
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF
0180 61 73 65 20 65 6E 74 65 72 20 74 65 78 74 2C 20 ase enter text,
0190 75 70 20 74 6F 20 32 35 35 20 63 68 61 72 61 63 up to 255 charac
01A0 74 65 72 73 3A 20 24 00 00 00 00 00 00 00 00 00 ters: $.........
01B0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
01C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
01D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
01E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
01F0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
A2:SOURCE>>test
Please enter text, up to 255 characters: Hello, world!
The text you typed was: Hello, world!
A2:SOURCE>>