; define code chunk for automatic test case ; the total code will be loaded as with target ram ; then the test code is loaded and executed ; finally the expectations are tested and may set errors #test name, addr, size .test-clock 4000000 [Hz|kHz|MHz] ; run with fixed clock speed; default: fastest .test-int 50 [Hz] ; generate timer interrupts; default: no interrupts .test-int 80000 [cc] ; generate timer interrupts; default: no interrupts .test-intack 255 ; byte read from bus at int ack; default: 255 .test-timeout 10 [s|ms] ; time out after 10 seconds; default: no timeout .test-out addr, "expected values", 1,2,3, [1,2,3]*5, * .test-in addr, "inputlist", 1,2,3,4,5, [0]*256, [255] * .test-console addr ; this address will read from and write to the console .test-infile addr, "filename" .test-outfile addr, "filename" [ , append ] [ , compare ] .test-blockdev addr, "filename" , blocksize ; blockize = 1 .. 2^16 => out blk_lo,blk_hi,addr_lo,addr_hi, 0xE5 ; read => out blk_lo,blk_hi,addr_lo,addr_hi, 0xEE ; write ... some code ... .expect cc <= 10000 .expect de = 1234 .expect hl = 1234 ... some code ... .expect cc <= 10000 .expect de = 1234 .expect hl = 1234 ... .dump-registers .dump-memory ,