NASM Forum > Example Code

byte count

<< < (2/2)

greco558:
Fixed Bug I found in bytect program.

If count of byte was greater then 256, display of that bytes count would not be accurate because
I was storing count in a byte sized memory  location, change to dword size and adjusted index into
count memory EBX*4 and counting is now accurate for number of bytes in file greater 256.


Best Regards
John
 

Frank Kotler:
Thanks John!

I missed that. My computer crashed recently, so I'm re-collecting my collection of examples.

Best,
Frank

greco558:
Thanks, But I just fixed what I hope is the last Bug.

It just had to do with -c option greater than 255.

Fixed in this new program.



Best Regards
John 

Navigation

[0] Message Index

[*] Previous page

Go to full version