| |

VerySource

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

What does this NASM statement mean?

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-5 18:30:01
| Show all posts |Read mode
mov [bx + LBA + 2-@], dl

The above is a piece of code of a program that NASM can compile. I don't understand what @ means, and of course I can't understand [bx + LBA + 2- @]. I have also read the NASM manual and have not seen this usage.
Reply

Use magic Report

2

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-26 10:00:01
| Show all posts
Maybe it ’s a typo. Should it be "$"?
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-27 23:00:02
| Show all posts
It's not a mistake, because NASM can compile the program, and "@" and "$" are used in many places in the program.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-8 21:00:02
| Show all posts
@ Should be the address of a label

MASM / TASM can use @ 0, @ 1 as labels
@Have not tried, but in theory it should be possible
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list