![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
You've commented out all of your labels. There's a reason the code I posted follows this theme:
org 100h
jmp start
; Data definitions here
start:
; Executable code hereorg 100h jmp start save db 4 dup '$' snum db "Enter second$" start: mov ah,09 mov dx,snum int 21h mov ax,04C00h int 21h org 100h mov ah,09 mov dx,snum int 21h mov ax,04C00h int 21h save db 4 dup '$' snum db "Enter second$"
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#32 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5
![]() |
Quote:
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#33 |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
oh i see so the the first line in my code should always be executable instruction.....another thing you have taught me......................lectricpharaoh.............i read your post and i looked at the error message again and this time i have noticed the error message contained the words IP(Instruction Pointer) and the CS (Code Segment)...........thanks i didn't see that before.
|
|
|
|
|
|
#34 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
when i try to run this code below i keep getting an error saying a "byte or a word". why is this, didn't i already say that these two variables are both bytes by saying define bite (db), or is this error sayingg what do you want to move a byte or a word.if so how can i move a word if both of the variabes are a byte long.
Here is the code: Quote:
|
|
|
|
|
|
|
#35 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5
![]() |
Quote:
mov ah, num1 mov dummy, ah
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#36 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 333
Rep Power: 3
![]() |
oh...............thanks i understand now..............another question...........how do i move whats inside my save variable into a register such as ax register because when i do
Quote:
|
|
|
|
|
|
|
#37 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,107
Rep Power: 5
![]() |
Quote:
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|