lr35902ish racket
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
425B

  1. #lang racket
  2. (require "vm.rkt")
  3. (define (test-loop)
  4. (run-vm #x0000 #x0160 8
  5. '(#x26 #x01 ; LD H, $01
  6. #x2E #x61 ; LD L, $60
  7. #x3E #x05 ; LD A, $05
  8. #x77 ; LD (HL), A
  9. #x2C ; INC L
  10. #x3D ; DEC A
  11. #xFE #x00 ; CP $00
  12. #xC2 #x06 #x00 ; JP NZ, $0006
  13. #x10 ; STOP
  14. )))
  15. (provide (all-defined-out))