ASM in PB3.5 
Author Message
 ASM in PB3.5


I want to do some inline assembly  of some 32-bit opcodes (using EAX,
stuff like that). Since the ASM statement doesn't know how to do this,
I just assemble the opcodes using NASM (which puts in the 66h preamble
byte thing) and poke the assembled opcodes in Basic using

 ASM DB  xxxx

BUT I don't really understand the DB syntax.

!  DB  &h66
!  DB  &hC1
!  DB  &hE1

seems OK, but clumsy.

Forms like

!  DB &h11223344AABBCC

sometime complain that I have not entered a legal numeric variable,
which implies that even ASM is looking for legit numeric types (ie,
byte, word, longword, etc) which implies

!  DB  &h66C1E1

would NOT assemble three bytes!

The PB docs don't seem to discuss the DB syntax.

Any wisdom here?



ps - NASM is a cool free x86 assembler!

Mon, 01 Dec 2003 05:15:16 GMT  
 ASM in PB3.5

> Hi,

You'll probably get an answer in comp.lang.asm.x86


Wed, 03 Dec 2003 01:01:42 GMT  
 [ 2 post ] 

 Relevant Pages 

1. ASM syntax in PB3.5

2. Use of functions in C from PB3.5

3. Num Lock with PB3.20

4. PB3.5 and Win95

5. Parameter passing problem with pb3.5

6. PB3.5 Libaries

7. I need PB3.5 Libraries

8. Swap out when SHELLing with PB3.5 ?

9. Front end to PB3.5 ??

10. Translator ibm370-asm to hp-pa-asm

11. Translator ibm370-asm to hp-pa-asm

12. Is ASM ASM?


Powered by phpBB® Forum Software