Welcome, Guest. Please login or register.

Author Topic: rev counter adjusting  (Read 1395 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline skurk

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 929
    • Show all replies
Re: rev counter adjusting
« on: August 16, 2007, 10:47:18 PM »
Based on your BASIC program (and provided that I read it right) I would guess the assembler version should go something like this (saving a few cycles here and there):

Code: [Select]

    ldx #1
    ldy #0
    sty $80     ; our "a", just a random spot in the ZP
    stx $dd03
loop:
    sty $dd01
    stx $dd01
    inc $80
    jmp loop

This would naturally loop forever and won't do much as-is.  You also need a timer and a print function.  Let me know if you need more help and I'll be glad to assist.
Code 6502 asm or... DIE!!

[C64, C128, A500, A600, A1200, A3000, MBP+Mini, Efika/MOS2.1, Sam440 w/AOS4.1