Skip to content

Commit

Permalink
adjusting halt count
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick committed Dec 24, 2024
1 parent 9e18390 commit 3724eb5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion zss/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { memoryclearflags, memoryreadflags } from './memory'
import { ARG_TYPE, READ_CONTEXT, readargs } from './words/reader'
import { WORD, WORD_RESULT } from './words/types'

export const CONFIG = { HALT_AT_COUNT: 64 }
export const CONFIG = { HALT_AT_COUNT: 96 }

export type MESSAGE = {
id: string
Expand Down
6 changes: 3 additions & 3 deletions zss/device/synth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import {
} from 'tone'
import { createdevice } from 'zss/device'
import { ECHO_OFF, ECHO_ON } from 'zss/gadget/audio/fx'
import { createsource } from 'zss/gadget/audio/source'
import { clamp } from 'zss/mapping/number'
import {
invokeplay,
parseplay,
SYNTH_INVOKE,
SYNTH_NOTE_ON,
} from 'zss/mapping/play'
} from 'zss/gadget/audio/play'
import { createsource } from 'zss/gadget/audio/source'
import { clamp } from 'zss/mapping/number'
import { isarray, isnumber, ispresent, isstring } from 'zss/mapping/types'
import { NAME } from 'zss/words/types'

Expand Down
3 changes: 1 addition & 2 deletions zss/mapping/play.ts → zss/gadget/audio/play.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Tone from 'tone'

import { isnumber, ispresent } from './types'
import { isnumber, ispresent } from 'zss/mapping/types'

export enum SYNTH_OP {
OFF,
Expand Down
2 changes: 1 addition & 1 deletion zss/memory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export function memorytick() {

// loaders get more processing time
const resethalt = CONFIG.HALT_AT_COUNT
CONFIG.HALT_AT_COUNT = resethalt * 32
CONFIG.HALT_AT_COUNT = 256

// update loaders
MEMORY.loaders.forEach((code, id) => {
Expand Down

0 comments on commit 3724eb5

Please sign in to comment.