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
Recommended Answers
Jump to PostWell you didn't read this - http://www.daniweb.com/forums/announcement125-3.html
And you didn't say which assembler (nasm,tasm,masm,?asm) you're using. Do you get any error messages perchance?
Nor did you say what you want it to do, nor what it does (or doesn't) do instead.
All 3 Replies
Reply to this topic
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.