-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statements not working #26
Comments
Hello, @Jyo561 thanks for using the 8086 emulator web. For accessing the memory it starts with 0 and use |
I am not getting how to apply indirect addressing mode in it? |
Hope this helps
|
and can u suggest how change values in the memory location |
|
thanks but i was asking if we can directly change values in the memory section |
So if you run
Then you will notice in memory the first element will be 8 |
Can we put data to 5000 address using DB? |
The memory is based on an index starting from 0 and not the actual address you can read the note for the reason.
This will store number 7 in the 10th index. Same way in place of 7 you can use hexadecimal. |
@Jyo561 Apart from what @Vatsalsoni13 has suggested, if you want a way to store data at "compile" time, you can use the DB 0x75 ;this will be stored at mem loc 0
set 0x100 ; this will set the DS to 0x100
DB 0x57 ; this will be stored at 0x100 * 0x10 = 0x1000
DB 0x88 ; this will be stored at 0x1001 You can check this works by compiling and setting the mem location to the Hope this helps :) |
set 0x2000 start: INC SI |
The program is fine but I guess you have miscalculated the address, after
|
how to write this piece of Code |
MOV AX,2000H
MOV BX,2002H
ADD AX,BX
i wrote this code and this not working in the compiler
The text was updated successfully, but these errors were encountered: