mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-03-26 12:30:21 +00:00
Version 1.1 with docs and LFO from 0 to 32
This commit is contained in:
parent
4a5e3ff989
commit
68053fb5fc
Binary file not shown.
Binary file not shown.
@ -109,18 +109,15 @@ end
|
|||||||
// Display LFO bar
|
// Display LFO bar
|
||||||
//
|
//
|
||||||
def showLFO
|
def showLFO
|
||||||
byte LFObar
|
|
||||||
|
|
||||||
LFObar = (current.LFO+7)/8
|
|
||||||
grcolor(WHITE)
|
grcolor(WHITE)
|
||||||
rect(33, 39, 6, 39, FALSE)
|
rect(33, 39, 6, 39, FALSE)
|
||||||
if LFObar < 32
|
if current.LFO < 32
|
||||||
grcolor(ORANGE)
|
grcolor(ORANGE)
|
||||||
rect(34, 38, 7, 38-LFObar, TRUE)
|
rect(34, 38, 7, 38-current.LFO, TRUE)
|
||||||
fin
|
fin
|
||||||
if LFObar
|
if current.LFO
|
||||||
grcolor(DRKBLU)
|
grcolor(DRKBLU)
|
||||||
rect(34, 38, 39-LFObar, 38, TRUE)
|
rect(34, 38, 39-current.LFO, 38, TRUE)
|
||||||
fin
|
fin
|
||||||
//
|
//
|
||||||
//Show actual value
|
//Show actual value
|
||||||
@ -202,7 +199,7 @@ def showMainPanel
|
|||||||
showDuration
|
showDuration
|
||||||
showWaveform
|
showWaveform
|
||||||
showLFO
|
showLFO
|
||||||
putsxy(5, 0, "OSCILLATION OVERTHRUSTER 1.0")
|
putsxy(5, 0, "OSCILLATION OVERTHRUSTER 1.1")
|
||||||
normal
|
normal
|
||||||
putsxy(1, 0, "1-8")
|
putsxy(1, 0, "1-8")
|
||||||
gotoxy(34, 0); putc('<')
|
gotoxy(34, 0); putc('<')
|
||||||
@ -358,7 +355,7 @@ def playback(idx)
|
|||||||
break
|
break
|
||||||
is '>'
|
is '>'
|
||||||
is '.'
|
is '.'
|
||||||
if current.LFO < 255
|
if current.LFO < 32
|
||||||
current.LFO++
|
current.LFO++
|
||||||
fin
|
fin
|
||||||
break
|
break
|
||||||
@ -507,7 +504,7 @@ def main
|
|||||||
break
|
break
|
||||||
is '>'
|
is '>'
|
||||||
is '.'
|
is '.'
|
||||||
if current.LFO < 255
|
if current.LFO < 32
|
||||||
current.LFO++
|
current.LFO++
|
||||||
fin
|
fin
|
||||||
showLFO
|
showLFO
|
||||||
|
Binary file not shown.
@ -57,43 +57,15 @@ HIMEM = $73
|
|||||||
;* INTERPRETER HEADER+INITIALIZATION
|
;* INTERPRETER HEADER+INITIALIZATION
|
||||||
;*
|
;*
|
||||||
*= $2000
|
*= $2000
|
||||||
STY IFPL ; INIT FRAME POINTER
|
LDX #$FE
|
||||||
LDA #$BF
|
|
||||||
STA IFPH
|
|
||||||
LDA #<SEGEND ; SAVE HEAP START
|
|
||||||
STA SRCL
|
|
||||||
LDA #>SEGEND
|
|
||||||
STA SRCH
|
|
||||||
LDA #$4C
|
|
||||||
CMP $BE00 ; CHECK FOR BASIC.SYSTEM
|
|
||||||
BNE +
|
|
||||||
CMP $BE03
|
|
||||||
BNE +
|
|
||||||
LDA HIMEM
|
|
||||||
STA IFPL
|
|
||||||
LDA HIMEM+1
|
|
||||||
STA IFPH
|
|
||||||
LDX #$00 ; SAVE PAGE ZERO
|
|
||||||
- LDA $00,X
|
|
||||||
STA ZPSAVE,X
|
|
||||||
INX
|
|
||||||
BNE -
|
|
||||||
JSR VMINIT
|
|
||||||
LDX #$00 ; RESTORE ZP
|
|
||||||
- LDA ZPSAVE,X
|
|
||||||
STA $00,X
|
|
||||||
INX
|
|
||||||
BNE -
|
|
||||||
RTS
|
|
||||||
+ LDX #$FE
|
|
||||||
TXS
|
TXS
|
||||||
JSR VMINIT
|
JSR VMINIT
|
||||||
JSR $BF00
|
JSR $BF00
|
||||||
!BYTE $65
|
!BYTE $65
|
||||||
!WORD EXITTBL
|
!WORD EXITTBL
|
||||||
EXITTBL:
|
EXITTBL:
|
||||||
!BYTE 4
|
!BYTE 4
|
||||||
!BYTE 0
|
!BYTE 0
|
||||||
;*
|
;*
|
||||||
;* SYSTEM INTERPRETER ENTRYPOINT
|
;* SYSTEM INTERPRETER ENTRYPOINT
|
||||||
;*
|
;*
|
||||||
@ -990,6 +962,14 @@ VMINIT LDY #$10 ; INSTALL PAGE 0 FETCHOP ROUTINE
|
|||||||
STA DROP-1,Y
|
STA DROP-1,Y
|
||||||
DEY
|
DEY
|
||||||
BNE -
|
BNE -
|
||||||
|
STY IFPL ; INIT FRAME POINTER
|
||||||
|
LDA #$BF
|
||||||
|
STA IFPH
|
||||||
|
LDA #<SEGEND ; SAVE HEAP START
|
||||||
|
STA SRCL
|
||||||
|
LDA #>SEGEND
|
||||||
|
STA SRCH
|
||||||
|
LDA #$4C
|
||||||
JMP START
|
JMP START
|
||||||
PAGE0 = *
|
PAGE0 = *
|
||||||
!PSEUDOPC $00EF {
|
!PSEUDOPC $00EF {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user