Skip to content

12. Jumps with "BRANCHES"

puregorill edited this page Jun 3, 2023 · 3 revisions

"BRANCHES" are a class of commands that go from mid level to low level. However, they all have the disadvantage from the point of view of structured programming that they fit into the "gotos are dangerous" scheme. They are jumps to a RAM address (mostly represented as label of course).

Mid level conditional branches

...work in process...
...work in process...
...work in process...
...work in process...
...work in process...

6502 lower level branch instructions

6502 standard conditional branches

These are the branch (conditional) built into the processor. Not much to say here, this wiki is not an assembler course.

FAR branches

There are macros for all branch instructions that simulate a FAR version.
They are written and used like the corresponding branch instructions.
Instead of the "b" write a "J".

+JCS address     ; JCS is the FAR version of bcs
+JCC address     ; ... and so on ...
+JEQ address
+JNE address
+JMI address
+JPL address
+JVS address
+JVC address

WORK IN PROCESS ... THING MISSING ...