That isn't the way a Human writes an assembler program.
To get a useful assembler source code, download ICprog for free here:
http://www.ic-prog.com/
Open your hex file and select "assembler" under the "View" tab.
It only works for 16 family devices (I think) I can guarantee it works with
16F84/A, 16F628/A, 16F876, 16F877 hex codes.
You'll notice you can only directly look at logic operations such as IF-THEN
statements, NEXT-FOR loops, maths operations, etc.
If you use any functional commands such as SOUND, LCDOUT, I2CREAD, etc.
PBP inserts the code/libs for these commands at the start of the assembler source,
and then each PBP command calls that code.
For example, if you use the SERIN command three times in your PBP program,
the assembler serial code is only inserted once (a simple routine that receives one byte),
and the program calls that routine to receive every byte (around the areas of the program
that each SERIN command was).
You can save memory there because PBP uses some unnecessary "transporter variables" to
deliver values to these libraries. With some study, in assembler, you can use them directly.
Cheers, Art.
Bookmarks