Allow 32 bit segments, add .TOPBYTE pseduo instruction
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
#include "spool.h"
|
||||
#include "studyexpr.h"
|
||||
#include "symtab.h"
|
||||
#include "cpu.h"
|
||||
|
||||
|
||||
|
||||
@@ -93,7 +94,22 @@ Segment* ActiveSeg;
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
void CreateDefaultSegments(void) {
|
||||
int AddrSizeAbs;
|
||||
|
||||
if (CPU == CPU_65C032) {
|
||||
AddrSizeAbs = 4;
|
||||
} else {
|
||||
AddrSizeAbs = 2;
|
||||
}
|
||||
|
||||
NullSegDef.AddrSize = AddrSizeAbs;
|
||||
ZeropageSegDef.AddrSize = ADDR_SIZE_ZP;
|
||||
DataSegDef.AddrSize = AddrSizeAbs;
|
||||
BssSegDef.AddrSize = AddrSizeAbs;
|
||||
RODataSegDef.AddrSize = AddrSizeAbs;
|
||||
CodeSegDef.AddrSize = AddrSizeAbs;
|
||||
}
|
||||
|
||||
static Segment* NewSegFromDef (SegDef* Def)
|
||||
/* Create a new segment from a segment definition. Used only internally, no
|
||||
|
||||
Reference in New Issue
Block a user