Relative Content

Tag Archive for assemblymasm

MASM Fatal error: unmatched blocked nesting : DELETE

Hello, I am trying to find why is my code in assembly not compiling. I am a beginner in this language and I don’t seem to know the problem. DELETE SEGMENT assume cs:DELETE, ds:DELETE, ss:DELETE org 0100h .model small .stack 100h .DATA filename db ‘FILE1.txt’, 0 success_msg db ‘File deleted successfully’, 0DH, 0Ah, ‘$’ error_msg […]

Use of ADDR Operator in MASM

In MASM, I want to send my variable num1 to a function and have it modify the original value num1 it is holding. I want to accomplish this by using addr operator. The output here need to be 6, instead of 2. But what I am getting is 2 despite trying to change the original value.