BYTE Examples
Example 1:
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
Example 2:
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load Effective Address of TEMP's data area (TEMP+1) into DS:DI.
INT 12 returns number of 1k blocks of configured memory in AX (in INTEGER format).
MOVe the integer value returned in AX to TEMP (pointed to by DS:DI).
MULTiply TEMP by "1024" placing the result in MEMORY.
Example 3:
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Save the contents of the DS register.
Move 40h into AX register.
Move the contents of the AX register to the DS register.
Bitwise ORs the value of 20H into the value located at DS:[17h].
Restores the contents of the DS register.
![]() |