Home > other >  In the picture why assembly can not run, how should change
In the picture why assembly can not run, how should change

Time:10-11

FL DW?
MOV AX, TYPE FL

CodePudding user response:

What is your fl

CodePudding user response:

TYPE formats: TYPE expression if the expression is variable, the assembler will echo in bytes, of the variable types: DB (bytes) is 1, DW (words) to 2, DD (double word) of 4, DF (six byte of word) for 6, DQ (4 words) of 8, DT (10 bytes) for 10, if the expression is a label, assembly program will loop back on behalf of the label types of values: NEAR to 1, FAR - 2, if the expression is constant, should back to zero,

CodePudding user response:

I think you are fl definition of memory is unknown, can be very big, and ax memory is limited, when fl memory is greater than the ax memory will not be able to move in the past, so an error, you try the fl is defined as a certain of the same memory and ax

CodePudding user response:

reference 1/f, whimsical boy reply:
what is your fl to

Definition of unknown memory,,,,,,,,

CodePudding user response:

So is the reason I said

CodePudding user response:

The
reference 5 floor whimsical boy reply:
so is the reason that I say

Is not this reason,,,,,,,,

CodePudding user response:

Definition and instruction itself has no problem, just your program does not have the basic structure:
.data
Fl dw?

The code
Start:
Mov ax, type fl
Mov ah, 4 ch
Int 21 h

The end start
It's good that

CodePudding user response:

refer to 7th floor early play big play nuclear response:
definition and instruction itself has no problem, just your program does not have the basic structure:
.data
Fl dw?

The code
Start:
Mov ax, type fl
Mov ah, 4 ch
Int 21 h

The end start
Good

Or not, I am using 8086 assembly

CodePudding user response:

The size and length, type, can't run

CodePudding user response:

That is the problem, the compiler you use the measured masm 5.1 can all be
  • Related