Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANEL
ACCESSING CODE ROM(cont’)
Compare and contrast the following programs and discuss the advantages and disadvantages of each one.(a) #include <reg51.h>void main(void){P1=‘H’;P1=‘E’;P1=‘L’;P1=‘L’;P1=‘O’;}
...Short and simple, but the individual characters are embedded into the program and it mixes the code and data together