Wenn ich jetzt die Applikation SPEAK.COM bin, wie kann ich dann den Text im RAM finden?
TFM of FutureSoft
http://www.FutureOS.de --> Das Betriebssystem FutureOS (Update: 07.10.2026)
👍 0👎 0
#22021-01-15 21:06
Vielleicht hilft das hier; s. CP/M 8080 assembly ("CP/M includes some very rudimentary argument parsing: it assumes that the first two space-separated arguments are filenames. Apart from that you can get the raw command line, except that all lowercase letters are made uppercase.
If you need any further parsing, the program needs to do that by itself, which led to many people not bothering."😉
JR START
;
; --- >>> Version und Konfiguration <<< ---
;
DB &18,&0D," ",&0A,&0D
DB &0D
DB "SP.COM - speaks and prints command line",&0A,&0D
DB "(c)2021 LambdaMikel and TFM of FutureSoft",&0A,&0D
DB "Powered by FutureOS knowhow!",&0A,&0D
DB &1A
;
; --- >>> String (von Eingabezeile) anzeigen und sprechen <<< ---
;
START LD BC,&FBEE:LD A,&E8😮UT (C),A ;Confirmatins OFF
LD HL,&0081 ;HL = Zeiger auf Stringanfang
LD A,&EF😮UT (C),A ;LS auf Epson Modus
LD A,(&0080) ;A = Laenge des Strings (max. 127 Bytes)
ZSTR AND A,A ;String-Laenge = &00?
RET Z ;Dann fertig!
PUSH AF😛USH BC😛USH HL ; Save A, BC and HL registers on the stack
LD E,(HL) ;E = naechstes Zeichen aus String
OUT (C),E ;Zeichen an LS senden