Professional Documents
Culture Documents
APU CSLLT - 7 - Services
APU CSLLT - 7 - Services
CT073-3-2
Services
Topic & Structure of The Lesson
• Services
CU ALU
MEMORY/REGISTERS
31 16 15 0
EAX AX
EBX BX
ECX CX
EDX DX
ESI SI
EDI DI
CU ALU
EBP BP
MEMORY/REGISTERS
15 8 7 0
AX AH AL
BX BH BL
CX CH CL
DX DH DL
CU ALU
MEMORY/REGISTERS
•. AX = (AH * 256) + AL
• BX = (BH * 256) + BL
• CX = (CH * 256) + CL
• DX = (DH * 256) + DL
31 16 15 0
EFLAG FLAG
CU ALU
MEMORY/REGISTERS
CS Code
SS Stack
DS Data
ES Extra
FS
GS
CU ALU
MEMORY/REGISTERS
31 16 15 0
EIP IP
ESP SP
CU ALU
MEMORY/REGISTERS
BIOS
or
As
r am
se
OS
og
mb
Pr
ly
Language
Comment
The string to be displayed must be terminated with a $ character.
CT073-3-2 and CSLLT Services Slide (15) of 26
Sample Service
Comment
Before calling the service, offset 0 in the buffer must be set with a number
indicating the total characters to be read.
After service returns, offset 1 in the buffer contains the actual number of
characters read in (excluding the carriage return).
CT073-3-2 and CSLLT Services Slide (17) of 26
Sample Service
Solution
CT073-3-2 and CSLLT Services Slide (22) of 26
Exercise
Q&A