MCS-85 - Self modifying program Intel 80C85
Автор: Nikola Tesla
Загружено: 2025-12-26
Просмотров: 417
We can easily write a self modifying program for the intel MCS-85 family 8085 microprocessor. This program works ONLY from RAM and will not work with ROM memory.
Program listing and 8085 logical and arithmetic rotation opcode encoding available at github
https://github.com/mit41301/MCS-85-80...
At any point of time, the program will contain only ONE rotate instruction. The program will either have RAL instruction or RAR.
RAL = 0X17
RAR = 0X1F
Depending on CARRY flag, the RAR instruction will change to RAR instruction by flipping the 3rd bit of the instruction by XOR with 0X08.
So the program itself modifies the program by changing the opcode at the location 2002.
#intel
#80C85
#atmel
#microchip
#nxp
#nuvoton
#megawin
#oki
#toshiba
#nec
#hitachi
#fairchild
#dallas
#retrocomputer
#8bit
#accumulator
#rotation
#led
#ledlights
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: