Skip to content

Commit

Permalink
StartAssembler now works for z80 / m68k
Browse files Browse the repository at this point in the history
  • Loading branch information
leuat committed Jan 1, 2025
1 parent 1b9ab49 commit 408bf61
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Publish/tutorials/AMIGA/tutorials/01_image.ras
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ program Image;
@use "graphics"
var


/*

This example initialises a 320x256 16-color image
Expand Down
2 changes: 0 additions & 2 deletions Publish/tutorials/AMSTRADCPC/tutorials/tut1.ras
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ var
image : incbin("resources/images/trse.bin");
palette : incbin("resources/images/trse_palette.bin");
begin
// Set 160x200 16-color mode
Expand Down
1 change: 1 addition & 0 deletions source/Compiler/compilers/compilerm68k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ void CompilerM68K::InitAssemblerAnddispatcher(QSharedPointer<AbstractSystem> sys
m_assembler = QSharedPointer<Asm68000>(new Asm68000());//
m_codeGen = QSharedPointer<CodeGen68k>(new CodeGen68k());
m_codeGen->dontOutputLineNumbers();
m_assembler->m_source <<m_parser.m_initAssembler;

if (Data::data.demomode)
Syntax::s.m_currentSystem->m_systemParams["ignoresystemheaders"]=(char)1;
Expand Down
3 changes: 3 additions & 0 deletions source/Compiler/compilers/compilerz80.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ void CompilerZ80::InitAssemblerAnddispatcher(QSharedPointer<AbstractSystem> syst
m_codeGen = QSharedPointer<CodeGenZ80>(new CodeGenZ80());
m_codeGen->dontOutputLineNumbers();

m_assembler->m_startInsertAssembler << m_parser.m_initAssembler;


if (m_projectIni->getdouble("override_target_settings")==1) {
Syntax::s.m_currentSystem->m_programStartAddress = Util::NumberFromStringHex(m_projectIni->getString("override_target_settings_org"));
}
Expand Down

0 comments on commit 408bf61

Please sign in to comment.