|
-
Jun 28th, 2002, 01:02 AM
#1
Thread Starter
PowerPoster
Default segment register
Whenever I use Based Indexed Memory Addressing Mode, the syntax is like this:
PHP Code:
mov ax, [reg1][reg2]
SI, DI, and BX will always use DS as the segment register but BP will use SS as its default segment register.
So if I do something like this:
PHP Code:
mov ax, [bx][si]
It'll use DS as its default segment register (mov ax, ds:[bx + si]) because there is no BP register - that uses SS.
But now if I do something like this:
PHP Code:
mov ax, [bx][bp]
Will the default segment register be DS(mov ax, DS:[bx + bp]) because the first register is bx that uses DS as its default segnment register?
And if I do the other way around:
PHP Code:
mov ax, [bp][bx]
The default segment register will be SS)mov ax, SS:[bp + bx]) because first offset register is bp and it uses SS as its default segment register?
-
Jun 28th, 2002, 07:32 AM
#2
-
Jun 28th, 2002, 01:06 PM
#3
Thread Starter
PowerPoster
Well, my question was that wether whatever I said was right but now I already found the answer.
-
Jun 28th, 2002, 04:44 PM
#4
Lively Member
!
im g..d to hear that
and now im looking your program and ill see if everything OK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|