Hi Help me write this program (tuan1111)
-
[www.codeproject.com Hi Help me write this program I have the code: _Text SEGMENT PUBLIC USE16 assume CS: _Text, DS: _Text org 0 ; This is the entry point for the program Entry: db 0EAh; jmp far seg: OFS; Currently we are at 0:7 C00 DW Offset AfterData, 7C0h; This makes us be at 7C0: 0 ; Our Message to the World ; ======================== HelloWorld db 'Hello World! ", 0; AfterData: push CS pop DS; update DS 7C0 to be instead of 0 ; Display Hello World ; =================== mov si, HelloWorld Offset do: mov AL, DS: [SI] SI inc or AL, AL jz done; mov BX, 0 mov AH, 0Eh int 10h jmp do; done:; ; OK We have displayed the message ; ================================ jmp $; ; Hang the system ; =============== ; Make the file 512 bytes long ; ============================ org 510 ; Add the boot signature ; ====================== DW 0AA55h _Text ENDS END](http://www.codeproject.com
I have the code:_Text SEGMENT PUBLIC USE16
assume CS: _Text, DS: _Text
org 0; This is the entry point for the program
Entry:
db 0EAh; jmp far seg: OFS; Currently we are at
0:7 C00
DW Offset AfterData, 7C0h; This makes us be at 7C0: 0; Our Message to the World
; ========================HelloWorld db 'Hello World! )[