001 BITS 16
002 segment myStack stack
003 resb 0100h
004
005 segment myData data
006 somedata db 10101100b
007
008 segment myCode code
009
00A dothingstobx:
00B push ax
00C mov ax, 56h
00D add word ax, bx
00E or bx, ax
00F ret
010
011 ..start:
012 mov ax,myData
013 mov ds,ax
014 mov ah,1
015 int 21h
016 mov byte bl, al
017 mov byte bh, [somedata]
018 call dothingstobx
019 mov word ax,4c00h
01A int 21
01B .end
Joonas 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.