Thank you WJR for responding.
11-6-2012
; converting a Masm32 32-bit program to GoAsm 32-bit
; this code shows an error when run in GoBug
FileBuffer is initialized to 30303030303030303030
EndBal contains 01e78h
mhold contains 01bbch
savediff contains 02bch
savediff is arrived at by subtracting mhold from EndBal
This is what FileBuffer looks like after dwtoa is executed:
37303000303030303030
I have no idea where the (00) came from in the 4th byte
unless it's from savediff which shows as bc020000
Of course it is invalid and should be 30
BufAdd dd 0
EndBal dd 0
mhold dd 0
savediff dd 0
minusplus db 0
FileBuffer db ' ',0
mov ebx,D[EndBal]
mov ecx,ebx
sub ebx,D[mhold]
mov [savediff],ebx ; to be converted in .N45
mov eax,D[mhold]
cmp ecx,eax ; ecx < is plus, ecx > is minus
jl >.N44
mov B[minusplus], "-"
jmp >.N45
.N44
mov B[minusplus], "+"
.N45
mov ecx,[savediff] ; input record -- EndCkBal - MathHold
lea ebx, FileBuffer
mov [BufAdd], ebx
; dwtoa is a MASM32 goody
invoke dwtoa, ecx,[BufAdd] ; Hex DD to string
; output is in FileBuffer
Another item about GoBug - in Run To - how do I clear all the addresses I have
keyed in?