Commits

Anonymous committed aa9637b

Fixed bug in tile map setup.

Comments (0)

Files changed (1)

segams/hello_sms.s

   ld  hl,vdp_setup
   otir
 
-  ld  c,$bf
   ld  hl,$4020
   out (c),l
   out (c),h
   otir        ; Write (hl) value to port (c), increase hl, decrease b, and repeat until b == 0
 
   inc c       ; c = $bf
-  ld  de,$37fe
+  ld  de,$7800
   out (c),e
   out (c),d
   dec c
   ld b,6
 -:
   inc a
+  out (c),a
   out (c),e
-  out (c),a
   djnz -
 
 
 
 
 vdp_setup:
-  .db   $14,$80     ; Mode control reg. 1
+  .db   $04,$80     ; Mode control reg. 1
   .db   $40,$81     ; Mode control reg. 2 ( bit 6 enables display)
   .db   $ff,$82     ; Name table base
   .db   $ff,$83     ; Color table base