1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-21 07:33:14 +00:00

updated nightwatch

This commit is contained in:
Steven Hugg 2022-10-04 10:01:40 -05:00
parent 30e66fa26c
commit fc767a6e1f
4 changed files with 648 additions and 211 deletions

809
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -54,10 +54,10 @@
"typescript-formatter": "^7.2.2"
},
"optionalDependencies": {
"chromedriver": "^97.0.1",
"chromedriver": "*",
"heapdump": "^0.3.15",
"jsfuzz": "^1.0.14",
"nightwatch": "^2.0.5",
"nightwatch": "*",
"reflect-metadata": "^0.1.13",
"rgbquant": "^1.1.2",
"typedoc": "^0.22.11"

42
presets/c64/hello.dasm Normal file
View File

@ -0,0 +1,42 @@
include "cartheader.dasm"
; program start
Temp equ $03
Start
jsr $FF81 ; CINT (clear screen)
sei ; turn off interrupts
ldy #0
sty $d020 ; reset border color
Loop
lda Message,y ; load message byte
beq EOM ; 0 = end of string
clc
adc #$c0 ; + 192
sta $400+41,y ; store to screen
iny
bne Loop ; next character
EOM
Wait1
lda $d011
bmi Wait1 ; wait for line < 256
Wait2
lda $d012 ; get current scanline
Wait3
cmp $d012
beq Wait3 ; wait for scanline to change
lsr
lsr
clc
adc Temp
sta $d020 ; set border color
lda $d011 ; get status bits
bpl Wait2 ; repeat until line >= 256
sty $d020 ; reset border color
dec Temp ; scroll colors
jmp Wait1 ; endless loop
Message
; PETSCII - http://sta.c64.org/cbm64pet.html
byte "HELLO`WORLDa"
byte 0

View File

@ -40,13 +40,13 @@ exports['test embed IDE in iframe'] = function(browser) {
.waitForElementVisible('#emuscreen')
.waitForElementVisible('.emuvideo')
browser.url(IDEURL + "?embed=1&platform=c64&importURL=/presets/c64/hello.dasm")
browser.url(IDEURL + "?embed=1&platform=c64&importURL=/presets/c64/hellobasic.dasm")
.waitForElementNotVisible('#compile_spinner', time=10000)
.waitForElementNotVisible('#error_alert')
.waitForElementVisible('#emuscreen')
.waitForElementVisible('.emuvideo')
browser.url(IDEURL + "?embed=1&platform=c64&importURL=/presets/c64/hello.dasm")
browser.url(IDEURL + "?embed=1&platform=c64&importURL=/presets/c64/hellobasic.dasm")
.waitForElementNotVisible('#compile_spinner', time=10000)
.waitForElementNotVisible('#error_alert')
.waitForElementVisible('#emuscreen')