From a012355b32b1cb478c268926078ee422382331d8 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 11 Oct 2021 22:39:29 -0400 Subject: [PATCH] MPW Asm IIgs support. --- src/application.jsx | 2 +- src/wave_data.jsx | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/application.jsx b/src/application.jsx index 584cfb6..e8d8bd0 100644 --- a/src/application.jsx +++ b/src/application.jsx @@ -70,7 +70,7 @@ function Frequency(props) { function Assembler(props) { - var options = ["Merlin", "ORCA/M"].map( (o, ix) => { + var options = ["Merlin", "ORCA/M", "MPW"].map( (o, ix) => { return ; }); diff --git a/src/wave_data.jsx b/src/wave_data.jsx index 99e45cd..7880d86 100644 --- a/src/wave_data.jsx +++ b/src/wave_data.jsx @@ -72,6 +72,14 @@ export function WaveData(props) { } } + if (assembler == 2) { + // mpw + for (var n = 0; n < 32; ++n) { + var line = " dc.b $" + hex.slice(n * 8, n * 8 + 8).join(",$") + "\n" + code.push(line); + } + } + return (