| |

VerySource

 Forgot password?
 Register
Search
View: 36|Reply: 3

Show why something went wrong. . . .

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-3-7 19:00:01
| Show all posts |Read mode
SHOWOUT MARC A, B, C, D, E; macros are called to display strings at specified coordinates and attributes.
MOV AH, 13H; where the string is defined in ES
MOV AL, 0H
MOV BH, 0H
MOV BL, D
MOV CX, E
MOV DH, A
MOV DL, B
MOV SI, OFFSET C
MOV ES: [BP], SI
INT 10H
ENDM

SHOWOUT 08,32, MESS1,0B9H, LENTH1; DH / DL = 08/32, MESS1 is the displayed string, 0B9H is
In doing so, it shows how it can be garbled.
Reply

Use magic Report

0

Threads

22

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 2020-6-6 17:45:01
| Show all posts
...
; MOV SI,OFFSET C
; MOV ES:[BP],SI
MOV BP, C; ES:BP points to the string to be displayed, not the address of the string
INT 10H
...
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-6-26 14:45:01
| Show all posts
No, the book says so. It should be the only address, otherwise bp is in ss by default.
Reply

Use magic Report

0

Threads

22

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 2020-6-27 22:15:01
| Show all posts
es:bp is the address of the string to be displayed, not the address
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list