Added the rest of the marshalable types, and more info to the disassembly output (including a bytecode position counter to help with jump calculations)

This commit is contained in:
Michael Hansen
2009-07-25 02:41:15 +00:00
parent 3b389f4b00
commit 98a50fd042
13 changed files with 295 additions and 76 deletions

View File

@@ -23,6 +23,20 @@ int PycData::get32()
);
}
Pyc_INT64 PycData::get64()
{
/* Ensure endianness */
return (Pyc_INT64)( ((Pyc_INT64)(getByte() & 0xFF) )
| ((Pyc_INT64)(getByte() & 0xFF) << 8)
| ((Pyc_INT64)(getByte() & 0xFF) << 16)
| ((Pyc_INT64)(getByte() & 0xFF) << 24)
| ((Pyc_INT64)(getByte() & 0xFF) << 32)
| ((Pyc_INT64)(getByte() & 0xFF) << 40)
| ((Pyc_INT64)(getByte() & 0xFF) << 48)
| ((Pyc_INT64)(getByte() & 0xFF) << 56)
);
}
/* PycFile */
PycFile::PycFile(const char* filename)