File tree Expand file tree Collapse file tree 5 files changed +38
-6
lines changed
Expand file tree Collapse file tree 5 files changed +38
-6
lines changed Original file line number Diff line number Diff line change 11* .sav
22bin2 /*
33mgba /*
4+ tgt /*
45
56# random crap that tends to appear over time
67Thumbs.db
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ ROOT=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
4+
5+ rm -rf " $ROOT " /tgt
6+
7+ maketgt () {
8+ local target_dir=" $ROOT " /tgt/gvasm-" $1 "
9+ local zip_file=" $ROOT " /tgt/gvasm-" $1 " .zip
10+
11+ mkdir -p " $target_dir "
12+
13+ deno compile \
14+ --target " $1 " \
15+ --output " $target_dir " /gvasm \
16+ --allow-read \
17+ --allow-write \
18+ --allow-run \
19+ " $ROOT " /gvasm.ts
20+
21+ # Navigate to the target directory and zip everything inside it without the directory path
22+ (cd " $target_dir " && zip -r " $zip_file " * )
23+
24+ # Remove the original target directory after creating the zip
25+ rm -rf " $target_dir "
26+ }
27+
28+ maketgt x86_64-unknown-linux-gnu
29+ maketgt x86_64-pc-windows-msvc
30+ maketgt x86_64-apple-darwin
31+ maketgt aarch64-apple-darwin
Original file line number Diff line number Diff line change 55// SPDX-License-Identifier: 0BSD
66//
77
8- import * as canvas from 'https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/f6fc1f5a73dc77b991ff035ef1f7627008c6b51c /mod.ts' ;
8+ import * as canvas from 'https://raw.githubusercontent.com/DjDeveloperr/deno-canvas/ac6f50dcda4471d7710b22eef8017cdd634fb9a9 /mod.ts' ;
99import * as path from 'https://deno.land/std@0.182.0/path/mod.ts' ;
10- export { parse as argParse } from 'https://deno.land/std@0.182 .0/flags/mod.ts' ;
11- export { exists as fileExists } from 'https://deno.land/std@0.182 .0/fs/exists.ts' ;
10+ export { parse as argParse } from 'https://deno.land/std@0.198 .0/flags/mod.ts' ;
11+ export { exists as fileExists } from 'https://deno.land/std@0.198 .0/fs/exists.ts' ;
1212
1313export interface Image {
1414 width : number ;
Original file line number Diff line number Diff line change @@ -946,7 +946,7 @@ export namespace ARM {
946946 '$oper$s.$cond $Rd, $Rm, $shift #$amount' ,
947947 '$oper$cond$s $Rd, $Rm, $shift #$amount' ,
948948 ] ,
949- run : ( cpu : CPU , sym : SymReader ) => {
949+ run : ( cpu : CPU , sym : SymReader ) : void => {
950950 const oper = sym ( 'oper' ) ;
951951 const s = ! ! sym ( 's' ) ;
952952 const cond = sym ( 'cond' ) ;
@@ -1413,7 +1413,7 @@ export namespace ARM {
14131413 '$oper$cond $Rn, #$expression' ,
14141414 '$oper.$cond $Rn, #$expression' ,
14151415 ] ,
1416- run : ( cpu : CPU , sym : SymReader ) => {
1416+ run : ( cpu : CPU , sym : SymReader ) : void => {
14171417 const oper = sym ( 'oper' ) ;
14181418 const cond = sym ( 'cond' ) ;
14191419 const Rn = sym ( 'Rn' ) ;
Original file line number Diff line number Diff line change @@ -15652,7 +15652,7 @@ export function scr_dump(
1565215652 const str = prg . debugTable [ i ] ;
1565315653 const slen = str === null ? 4 : str . length ;
1565415654 const slenb = '' +
15655- String . fromCharCode ( ( slen ) & 0xFF ) +
15655+ String . fromCharCode ( slen & 0xFF ) +
1565615656 String . fromCharCode ( ( slen >> 8 ) & 0xFF ) +
1565715657 String . fromCharCode ( ( slen >> 16 ) & 0xFF ) +
1565815658 String . fromCharCode ( ( slen >> 24 ) & 0xFF ) ;
You can’t perform that action at this time.
0 commit comments