1. 首页
  2. 编程语言
  3. VB
  4. c64 smooth scrolling 在Commodore 64上平滑滚动基于字符的屏幕的实现

c64 smooth scrolling 在Commodore 64上平滑滚动基于字符的屏幕的实现

上传者: 2024-08-24 16:51:24上传 ZIP文件 6.14KB 热度 15次
Commodore 64上的平滑滚动屏幕这是在C64上实现水平平滑滚动的一些示例代码。 The algorithm in pseudo-code is: when_graphics_chip_is_at_line_3() { if (xscroll == 0) { shift_upper_half_of_color_ram(); } } when_graphics_chip_is_at_vblank() { xscroll--; if (xscroll == 4) { shift_upper_half_of_screen_ram_to_back_buffer(); } else if (xscroll == 2) { shift_lower_half_of_screen_ram_to_back_buffer();
用户评论