I'm assuming you meant I should simply remove them, which would mean:
MODEL small
.STACK 64
.DATA
DATA1 DB 52H
DATA2 DB 59H
SUM DB ?
.CODE
MAIN PROC FAR
MOV AL, DATA1
MOV BL, DATA2
ADD AL, BL
MOV SUM, AL...
I'm currently learning ASM and trying one of the code examples. I have no problem assembling, but when I get to linking, using TLINK32 on a computer running Windows XP with an Intel Pentium 3 processor, I get the following output:
The code in test.asm is:
MODEL small
.STACK 64
.DATA...
The RET instruction seems to be working: I don't get a message saying the program caused an error. The problem this time is that I get this message when attempting to run it in turbo debugger and I when I tried running it in debugger, I simply was not able to run it: if I use the G(o) command...
I corrected it, but I still get the same problem.
.586
.MODEL FLAT, STDCALL
.DATA
DATA1 DB 52H
DATA2 DB 29H
SUM DB ?
.CODE
START:
MOV AL, DATA1
MOV BL, DATA2
ADD AL, BL
MOV SUM, AL
MOV AH, 4CH
INT 21H
END START
Hello,
I have tried, using 32-bit assembly language code I found online, to write my own program. It assembled and link, but when I run it, I get a message saying the program had "encountered a problem and needs to close." It is a message that is common on Windows, asking to send a report to...
I had checked out the intel manuals, but I need to learn the basics (I'd at least need a basic skeleton to use with my programs), which, unless I'm mistaken (I skimmed through the first manual), which I won't find in the these manuals. Thank you for your answer and future answers.
Hello,
I would like to learn assembly language for 32-bit computers (intel, IBM, call it wtv you like), what book(s) would you recommend me? Thank you for your answers.
Thanks, I'll look for NASM for 16-bit code. But I'd still like to know how I'd write it in win32 (I read an ebook by Dr. Paul Carter on win32 ASM, but he mixes it with C to make the actual program). Thank you very much.
I started a book on assembly, but it's a bit old and I wasn't able to assemble the fist program :s. Here's the code:
.MODEL SMALL
.STACK 64
.DATA
DATA1 DB 52H
DATA2 DB 29H
SUM DB ?
.CODE
MAIN PROC FAR
MOV AL,DATA
MOV...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.