Date: 02-16-2022
Return to Index
created by gbSnippets
Registers EAX ESI ESB
EBX EDI EBP
ECX
EDX
ESB/EBP - used by PowerBASIC
Scratch EAX
ECX
EDX
Volatile EBX
ESI
EDI
<-AH-><-AL-> Byte
<----AX----> Word
<-------EAX---------> DWord
ASM Mnemonic Operand Operand Operand 'up to 3 operands
Function PBMain() As Long
Local iB As Byte, iL As Dword, iW As Word
'mov is like copy
Asm mov dest, source
'put 1 into ah. put ah into variable iB (Byte variable)
Asm mov ah, 1
Asm mov iB, ah
? Str$(iB)
'put 5 into eax. put eax into variable iL (Long variable)
Asm mov eax, 5
Asm mov iL, eax
? Str$(iL)
'
End Function
'gbs_01141
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm