Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Post Code

Name: Anonymous 2011-03-04 21:33

One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.

Name: Anonymous 2011-03-04 22:24


ORG $2030        
      
BEGIN
    LDAA #$FF
    STAA $1000
    JSR  DELAY
    LDAA #0
    STAA $1000
    JSR  DELAY
    JSR  DELAY
    JMP  BEGIN

DELAY    LDB    #10
OUTER    LDX    #20000
PAUSE    NOP
    NOP
    DEX
    BNE    PAUSE
    DECB
    BNE OUTER
    RTS


Turns a LED in port a($1000) off and on

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List