Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Machine code
- BB 11 01 B9 0D 00 B4 0E 8A 07 43 CD 10 E2 F9 CD 20 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21
- ; Assembly language
- org 7C00h
- use16
- jmp code
- nop
- db 'hellowrd'
- SectSize dw 00200h
- ClustSize db 001h
- ResSecs dw 00001h
- FatCnt db 002h
- RootSiz dw 000E0h
- TotSecs dw 00B40h
- Media db 0F0h
- FatSize dw 00009h
- TrkSecs dw 00012h
- HeadCnt dw 00002h
- HidnSec dw 00000h
- code:
- cli
- mov ax, cs
- mov ds, ax
- mov ss, ax
- mov sp, 7c00h
- sti
- mov ax,0b800h
- mov es,ax
- mov di,200
- mov ah,2
- mov bx,MessStr
- msg_print:
- mov al,[cs:bx]
- mov [es:di],ax
- inc bx
- add di,2
- cmp bx,MessEnd
- jnz msg_print
- loo:
- jmp loo
- MessStr equ $
- Message db 'Hello, World!'
- MessEnd equ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement