Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What does ptr do?

0 views
Skip to first unread message

Stefan Raaijmakers

unread,
Feb 26, 1995, 6:57:46 AM2/26/95
to
Waht does ptr do? is it the same as putting something between brackets? []

(sorry about my bad english)

Mike Schmit

unread,
Feb 26, 1995, 11:13:26 PM2/26/95
to
In <3ipqbq$c...@liberator.et.tudelft.nl> ste...@djo.wtm.tudelft.nl (Stefan
Raaijmakers) writes:

>
>Waht does ptr do? is it the same as putting something between brackets? []
>
>(sorry about my bad english)
>
>

If you say:

mov byte ptr [bx], 0

you are specifying that [BX] is a pointer to a byte. Without it
how does the assembler know if the 0 is 8-bits or 16-bits?

Basically, byte ptr, word ptr, dword ptr, all tell the assembler
the data type.

Mike Schmit

-------------------------------------------------------------------
msc...@ix.netcom.com author:
408-244-6826 Pentium Processor Programming Tools
800-765-8086 ISBN: 0-12-627230-1
-------------------------------------------------------------------

0 new messages