Conway's Game of Life - 3D 68000er Assembler-Code für 8x8x8 Game of Life.
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.

systm_00.s 872B

12345678910111213141516171819202122232425262728293031323334
  1. find_phys:
  2. move.w #2,-(sp)
  3. trap #14
  4. addq.w #2,sp
  5. move.l d0,phys_screen
  6. rts
  7. wrt_phys_tbl:
  8. move.l phys_screen,d0
  9. move.w #200-1,d1
  10. lea phys_tbl_y,a0
  11. luloop:
  12. move.l d0,(a0)+
  13. addi.w #160,d0
  14. dbra d1,luloop
  15. rts
  16. hline_lu:
  17. lea hln_tbl,a0
  18. move.w #16-1,d1
  19. hloop2:
  20. clr.w d0
  21. move.w #16-1,d2
  22. bset d1,d0
  23. hloop3:
  24. move.w d0,(a0)+
  25. move.w d0,d3
  26. lsr.w #1,d3
  27. or.w d3,d0
  28. dbra d2,hloop3
  29. dbra d1,hloop2
  30. rts