-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
809 additions
and
560 deletions.
There are no files selected for viewing
Binary file modified
BIN
+96 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_charset0.bin
Binary file not shown.
Binary file modified
BIN
-16 Bytes
(99%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_charset1.bin
Binary file not shown.
Binary file modified
BIN
+32 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_charset2.bin
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_charset3.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_screen0.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_screen1.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_screen2.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/13_screen3.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/chardata1.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/chardata3.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/disksprite.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Publish/tutorials/C64/DemoEffects_raytracer/data/example10_screen.bin
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/example10_table.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/example5_sprite.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Publish/tutorials/C64/DemoEffects_raytracer/data/example7_twister.bin
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
zeropages = ,$02, $04, $08, $16, $0B, $0D, $10, $12, $22, $24, $68 | ||
use_track_19 = 1 | ||
disable_compiler_comments = 0 | ||
temp_zeropages = ,$54, $56, $58, $5A | ||
zeropage_screenmemory = $fd | ||
zeropage_colormemory = $fb | ||
zeropage_decrunch1 = $47 | ||
zeropage_decrunch2 = $48 | ||
zeropage_decrunch3 = $4a | ||
zeropage_decrunch4 = $4b | ||
pascal_settings_use_local_variables = 1 | ||
system = FOENIX | ||
main_ras_file = none | ||
zeropage_internal1 = $4c | ||
zeropage_internal2 = $4e | ||
zeropage_internal3 = $50 | ||
zeropage_internal4 = $52 | ||
post_optimizer_passlda = 1 | ||
post_optimizer_passjmp = 1 | ||
post_optimizer_passldatax = 1 | ||
post_optimizer_passstalda = 1 | ||
post_optimizer_passldx = 1 | ||
post_optimizer_passcmp = 1 | ||
post_optimizer_passphapla = 1 | ||
machine_state = $35 | ||
exomize_toggle = 0 | ||
show_all_files = 1 | ||
use_vice_c1541 = 0 | ||
border_color = 0 | ||
background_color = 0 | ||
use_python = 0 | ||
override_target_settings = 0 | ||
remove_unused_symbols = 1 | ||
override_target_settings_org = $810 | ||
override_target_settings_ignore_sys = 0 | ||
override_target_settings_ignore_prg = 0 | ||
output_debug_symbols = 1 | ||
ignore_initial_jump = 0 | ||
var_zeropages = , | ||
zeropages_userdefined = , | ||
global_defines = , | ||
custom_system_cpu = 6502 | ||
custom_system_methods = C64 | ||
custom_system_assembler = From System | ||
custom_system_assembler_custom = 0 | ||
custom_system_emulator = 0 | ||
custom_system_emulator_parameters = 0 | ||
custom_system_assembler_parameters = 0 | ||
custom_system_ending = 0 | ||
disk_system = Krill | ||
petmodel = 2001-8N | ||
amstradcpc_model = 464 | ||
qemu = No | ||
use_tripe = 0 | ||
amstradcpc_options = 0 | ||
spectrum_model = 0 | ||
dosbox_cycles = 0 | ||
dosbox_x86_system = default | ||
cpu_x86_system = 8086 | ||
cpu_x86_output = exe | ||
columns = 40 | ||
vic_memory_config = none | ||
via_zeropages = , | ||
output_type = prg | ||
override_target_settings_basic = 0 | ||
override_target_settings_sys = 0 | ||
override_target_settings_prg = 0 | ||
build_list = , |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
program Tutorial1; | ||
var | ||
|
||
|
||
begin | ||
|
||
loop(); | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
*/ | ||
|
||
|
||
|
||
|
||
#include "mainwindow.h" | ||
#include <QApplication> | ||
#include <QStyleFactory> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#include "systemfoenix.h" | ||
|
||
|
||
void SystemFoenix::PrepareInitialAssembler(Assembler *as) | ||
{ | ||
/* as->Asm(" .org $2001"); | ||
if (!Syntax::s.m_ignoreSys){// && (Syntax::s.m_currentSystem->m_programStartAddress!=Syntax::s.m_currentSystem->m_startAddress)) { | ||
as->Asm(" .byte $09,$20 ;End of command marker (first byte after the 00 terminator)"); | ||
as->Asm(" .byte $0a,$00 ;10"); | ||
as->Asm(" .byte $fe,$02,$30,$00 ;BANK 0"); | ||
// Asm(" .byte <endd_s, >endd_s "); | ||
as->Asm(" .byte $13, $20 "); | ||
as->Asm(" .byte $14,$00 ;20"); | ||
as->Asm(" .byte $9e ;SYS"); | ||
// Asm(intToHexString(Syntax::s.m_currentSystem->m_programStartAddress)); | ||
// QString s = QString::number(Syntax::s.m_currentSystem->m_programStartAddress); | ||
as->Asm(" .byte $38,$32,$32,$34"); | ||
// | ||
//QString extra = ""; | ||
//if (s.count()<5) | ||
// extra=", $00"; | ||
as->Asm(" .byte $00"); | ||
as->Label("endd_s:"); | ||
as->Asm(" .byte $00,$00 ;End of basic terminators"); | ||
as->Asm(" .byte $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF ;extra"); | ||
as->EndMemoryBlock(); | ||
// Comment("End of SYS memory block, starting new"); | ||
as->StartMemoryBlock(Util::numToHex(Syntax::s.m_currentSystem->m_programStartAddress)); | ||
as->m_insertEndBlock = "EndBlock"+Util::numToHex(Syntax::s.m_currentSystem->m_programStartAddress).remove("$"); | ||
} | ||
*/ | ||
} | ||
|
||
void SystemFoenix::Assemble(QString &text, QString filename, QString currentDir, QSharedPointer<SymbolTable> symTab) | ||
{ | ||
QString smc = currentDir + QDir::separator() + "config.cfg"; | ||
if (!QFile::exists(smc)) | ||
Util::CopyFile(":resources/code/mega65/config.cfg",smc); | ||
// QStringList params = QStringList() << "-t none" << "-C" <<smc <<"--start-addr"<< "$2020"<<("-o"+filename+".prg") <<(filename +".asm") ; | ||
QStringList params = QStringList() << "-t"<<"none" << "-C" <<smc <<"--start-addr"<< Util::numToHex(m_startAddress)<<("-o"+filename+".prg") <<(filename +".asm") ; | ||
// QStringList params = QStringList() <<"--cpu"<<"4510"<<(filename +".asm") <<("-o"+filename+".prg"); | ||
AssembleCL65(text,filename,currentDir,symTab,"prg",params); | ||
QString f= filename+".prg"; | ||
QByteArray da = Util::loadBinaryFile(f); | ||
da.insert(0,(uchar)01); | ||
da.insert(1,(uchar)0x20); | ||
Util::SaveByteArray(da,f); | ||
|
||
System65C816::Assemble(text,filename,currentDir,symTab); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#ifndef SYSTEMFOENIX_H | ||
#define SYSTEMFOENIX_H | ||
|
||
#include "system65c816.h" | ||
|
||
class SystemFoenix : public System65C816 | ||
{ | ||
public: | ||
SystemFoenix(QSharedPointer<CIniFile> settings, QSharedPointer<CIniFile> proj) : System65C816(settings, proj) { | ||
m_allowedGlobalTypeFlags << "compressed"<<"pure"<<"pure_variable" <<"pure_number" << "signed" <<"no_term" <<"invert"; | ||
m_allowedProcedureTypeFlags << "pure"<<"pure_variable" <<"pure_number" << "signed" <<"no_term" <<"invert" <<"global" <<"stack"; | ||
m_supportsExomizer = true; | ||
m_registers << "_a"<<"_x" <<"_y" <<"_ax" <<"_ay" <<"_xy"; | ||
m_canRunAsmFiles = true; | ||
m_allowClasses = true; // EXPERIMENTAL | ||
m_processor = WDC65C02; | ||
float x = 1.8; | ||
m_systemColor = QColor(70*x,50*x,120*x); | ||
DefaultValues(); | ||
m_labels.append(SystemLabel(SystemLabel::ZEROPAGE,"Zero pages",0,0x00FF)); | ||
m_labels.append(SystemLabel(SystemLabel::STACK,"Stack",0x0100,0x01FF)); | ||
m_system = MEGA65; | ||
|
||
|
||
} | ||
|
||
void DefaultValues() override | ||
{ | ||
m_ignoreSys = false; | ||
m_startAddress=getDefaultBasicAddress(); | ||
m_programStartAddress = m_startAddress; | ||
} | ||
|
||
// virtual void Assemble(QString& text, QString file, QString currentDir, QSharedPointer<SymbolTable> symTab) override; | ||
|
||
int getDefaultBasicAddress() override { | ||
return 0x8080; | ||
}; | ||
|
||
|
||
virtual QString getEmulatorName() override { | ||
return m_settingsIni->getString("foenix_emulator"); | ||
} | ||
|
||
void applyEmulatorParameters(QStringList& params, QString debugFile, QString filename, CIniFile* pini) override { | ||
// params <<"-besure" <<"-prgmode" <<"65"<< "-prg" <<filename+".prg"; | ||
params <<filename+".prg" << "@"+Util::numToHex(m_startAddress); | ||
} | ||
|
||
void PrepareInitialAssembler(Assembler* as) override; | ||
void Assemble(QString &text, QString filename, QString currentDir, QSharedPointer<SymbolTable> symTab) override; | ||
|
||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.