| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS making |
MT>Hi All , hope you are having a nice day
MT>I am writing a little operating, but i have a little problem. When i try
o
MT>execute this
MT>/*
MT>SEG_A SEGMENT BYTE PUBLIC
MT> ASSUME CS:SEG_A, DS:SEG_A
MT> ORG 100h
MT>MAIN: JMP Start
MT>BootMsg DB 'Loading OS...0'
MT>START:
MT> MOV AX,0B800h
MT> MOV ES,AX
MT> MOV BX,0
MT> MOV SI,OFFSET BootMsg
MT>MsgLoop: MOV DX,[SI]
MT> CMP DX,'0'
MT> JE MsgDone
MT> MOV DH,7
MT> MOV ES:[BX],DX
MT> INC SI
MT> INC BX
MT> INC BX
MT> JMP MsgLoop
MT>MsgDone:
MT> RET
MT>SEG_A ENDS
MT> END MAIN*/
MT>it doesn't work. Why does this doesn't work ?
I'm not certain what the c-style comment delimiters are doing there, but I
think you should try grabbing parts of the message as bytes instead of words,
so the following of your code:
MsgLoop: MOV DX, [SI]
CMP DX, '0'
should be replaced by:
MsgLoop: MOV DL, [SI]
CMP DL, '0'
This allows your end-of-string detection to work... the way you had it, it
as
looking for the hex sequence 30h, 00h instead of the single character '0'.
((Cloud))
MauveCloud@juno.com
MauveCloud@yahoo.com
* OLX 2.2 * BlueWave? Wet behind the ears, eh?
--- PCBoard (R) v15.3/M 10
FAG>I tried to use int 14h func 02h: Receive character from communications
FAG>port.
FAG>The "specification" says: "This function waits for a character",
FAG>But in the few "experiments" I made, it seems that it doesn't _*wait*_
he
FAG>character....
FAG>Why?
You're looking at the wrong specs... under FOSSIL, it waits... w/o FOSSIL,
ou
have to check AH to find out whether you really got a good read.
((Cloud))
MauveCloud@juno.com
MauveCloud@yahoo.com
* OLX 2.2 * Call The Wrong Number BBS (209/943-1880) - 4nodes @14.4k
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.