Assembly syntax varable type PTR confusing

General FreeBASIC programming questions.
Post Reply
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

Assembly syntax varable type PTR confusing

Post by lassar »

Doing fairly good with assembly, but this assembly PTR is drivng me crazy.

Getting a error on this statement.

Code: Select all

		MOV     UBYTE PTR [X%], 9
Can never figure out where to put UBYTE PTR: before the comma, after the comma or
before the [X%], or After [X%], before the 9 or after the 9.

Where do I put UBYTE PTR ? ? ?

Could someone help me with my confusion on this?
SARG
Posts: 1766
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Assembly syntax varable type PTR confusing

Post by SARG »

Is UBYTE allowed ?
Changed by BYTE it works...
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

Re: Assembly syntax varable type PTR confusing

Post by lassar »

Yes "Byte" does work, but since I have had so much trouble with this in the past,
would someone explain the assembly syntax of this.

Where do you put "variable type" PTR in a assembly statement?
Post Reply