Currently browsing tag

Code

Learning Machine Code with 8bit Microcontrollers

Learning Machine Code with 8-bit Microcontrollers To understand deeply in processor architecture, we have to learn the Machine Code. I decide to select the 8051 microcontroller as a microprocessor model. A microcontroller (or MCU) is a computer-on-a-chip. They integrate many modules on one chip such as RAM, Flash memory, EEPROM, …

Porting code

Porting code… …or how to waste lots of time. Writing portable code is more than just sticking to strict ANSI-C. If you look at the sources of programs or libraries that compile on different platforms, you will find lots of ifdef statements that provide the portability. It is actually pretty …