Move curOffset into section code

Improves organization
This commit is contained in:
ISSOtm
2020-09-06 18:50:19 +02:00
parent 0d7914bff7
commit 12b7cf3cd4
7 changed files with 24 additions and 11 deletions

View File

@@ -26,8 +26,6 @@ extern uint32_t ulNewMacroSize;
extern int32_t nGBGfxID;
extern int32_t nBinaryID;
extern uint32_t curOffset; /* Offset into the current section */
extern struct sOptions DefaultOptions;
extern struct sOptions CurrentOptions;
extern bool haltnop;

View File

@@ -45,6 +45,8 @@ void out_SetLoadSection(char const *name, uint32_t secttype, uint32_t org,
void out_EndLoadSection(void);
struct Section *sect_GetSymbolSection(void);
uint32_t sect_GetSymbolOffset(void);
void sect_SetSymbolOffset(uint32_t ofs);
uint32_t sect_GetOutputOffset(void);
void sect_AlignPC(uint8_t alignment, uint16_t offset);