Skip to navigation

Elite on the BBC Micro and NES

Version analysis of dn2

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: dn2 Type: Subroutine Category: Text

Code variation 1 of 2A variation in the comments only

Tap on a block to expand it, and tap it again to revert.

Summary: Make a short, high beep and delay for 1 second
Summary: Make a short, high beep and delay for 0.5 seconds
.dn2 JSR BEEP \ Call the BEEP subroutine to make a short, high beep

Code variation 2 of 2Specific to an individual platform

Tap on a block to expand it, and tap it again to revert.

LDY #50 \ Delay for 50 vertical syncs (50/50 = 1 second) and JMP DELAY \ return from the subroutine using a tail call
LDY #25 \ Delay for 25 vertical syncs (25/50 = 0.5 second) and JMP DELAY \ return from the subroutine using a tail call
LDY #200 \ Delay for 200 delay loops and return from the JMP DELAY \ subroutine using a tail call