Académique Documents
Professionnel Documents
Culture Documents
6800AddressModes
6800AddressModes
Thereare6differentaddressmodesontheMotorola6800microprocessor.
Implied:
Iftheinstructionisimplied(eg.inca)thenthecontentsofAccumulatorAareincrementedby1
andthefetchinstructionactioniscomplete.Thisinstructionoperateswiththeinternalregisters
only.
Immediate:
Iftheinstructionisimmediate(eg.ldaa#$02)thenthenextbyteisfetchedandtreatedas
data,inthisexample2isplacedintotheAccumulatorA.
Direct:
Iftheinstructionisdirect(eg.ldaa$42)thenthenextbyteisfetchedand00isplacedasthe
HighByteoftheaddress((00)42)ofthedatatobeactedupon.Soitcanonlybeusedwith
addressesfrom$0000to$00FF.
Extended:
Iftheinstructionisextended(eg.ldaa$C300)thenthenexttwobytesarefetchedatthe
address($C300)andthedatatobeacteduponarethecontentsofthisaddress.Sothe
contentsofaddress($C300)willbeplacedintoAccumulatorA.
Indexed:
IftheinstructionisIndexedthenthecontentsoftheIndexregisterareaddedtothe
Displacementbyte($00to$FF)andthisformsapointertothecontentsofthedatatobeacted
upon.
Relative:
IftheinstructionisrelativethenthenextbyteisfetchedandtreatedasanoffsettothePC
duringthefollowingexecution.ThisoffsetisaSignedNumberandallowstheprogrammeto
branchforwardupto+127stepsandbackwardstoamaximumof128steps.
Thefinalphaseistheexecutioncycle.Thisdependsonwhattheinstructionis.Forexampleifit
isstaa42hthanitwilltakethecontentsoftheAccumulatorouttotheDataregisterandontothe
Databus,willplacetheaddress(00)42hontheAddressbusandbringtheR/Wlinelowtowrite
thedataintothememoryatthespecifiedaddress.
http://www.electronics.dit.ie/staff/tscarff/6800/Address_modes/6800_address_modes.htm
1/1