Assembly syntax varable type PTR confusing

General FreeBASIC programming questions.
lassar
Posts: 300
Joined: Jan 17, 2006 1:35
Contact:

Assembly syntax varable type PTR confusing

Postby lassar » Sep 26, 2018 14:59

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: 899
Joined: May 27, 2005 7:15
Location: FRANCE

Re: Assembly syntax varable type PTR confusing

Postby SARG » Sep 26, 2018 19:33

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

Re: Assembly syntax varable type PTR confusing

Postby lassar » Sep 26, 2018 20:39

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?

Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests