Date: 02-16-2022
Return to Index
created by gbSnippets
'Compilable Example: (Jose Includes)
'Credit Paul Dixon
#Compiler PBWin 9, PBWin 10
#Compile EXE
#Dim All
%Unicode=1
Function PBMain () As Long
test(1,2,3,4)
End Function
Sub test(ByVal a As Long ,ByVal b As Long, ByVal c As Long, ByVal d As Long)
Local r,StackPointer As Long, temp$
!mov StackPointer,esp 'get the current stack pointer.
For r = 0 To 100
temp$ = temp$ + $CrLf + Str$(r) + Hex$(StackPointer+r*4) + Hex$(Peek(Long,StackPointer+4*r),8)
Next
? temp$
End Sub
'gbs_00764
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm