Skip to navigation

Revs on the BBC Micro

Dashboard: GetTyreDashEdgeSup

Name: GetTyreDashEdgeSup [Show more] Type: Subroutine Category: Dashboard Summary: Copy the pixel bytes along the tyre and dashboard edges so they can be feathered
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * GetTyreDashEdges calls GetTyreDashEdgeSup

Modify the FillAfterObject routine before calling it.
Arguments: X Sets the destination address for the copy Y Alters the routine flow to either fill or copy A The value to use when copying black pixel bytes
IF _SUPERIOR OR _REVSPLUS .GetTyreDashEdgeSup STX sedg7+1 \ Modify the following instruction at sedg7: \ \ STA (P),Y -> STA (R),Y when X = LO(R) \ \ STA (P),Y -> STA (P),Y when X = LO(P) STY sedg5+1 \ Modify the following instruction at sedg5: \ \ BNE sedg8 -> BNE sedg1 when Y = &EF \ \ BNE sedg8 -> BNE sedg8 when Y = &09 STA sedg6+1 \ Modify the following instruction at sedg6: \ \ LDA #&55 -> LDA #0 when A = 0 \ \ LDA #&55 -> LDA #&55 when A = &55 \ Fall through into FillAfterObjectSup to copy the edge \ data to the location specified in (S R) ENDIF