Chapter 3 — Hardware Interrupts: PIC, PIT Timer, and Keyboard Input

Chapter 3 — Hardware Interrupts: PIC, PIT Timer, and Keyboard Input
This entry is part 3 of 5 in the series Writing A Linux Style Operating System From Scratch

In Chapter 2 we taught the CPU how to call our code when something goes wrong: Now we will teach the machine how to call our code when hardware wants attention: This is the first step toward a living kernel. A timer interrupt eventually gives us scheduling. Keyboard input eventually gives us a kernel monitor

Writing a Linux-style Operating System From Scratch

Writing a Linux-style Operating System From Scratch
This entry is part 1 of 5 in the series Writing A Linux Style Operating System From Scratch

Today, we are beginning a new article series: “Writing a Linux-Style Operating System From Scratch.” In this series, we will walk step by step through the process of creating our own operating system from the ground up. Many operating system tutorials stop shortly after the system boots and prints a simple message on the screen.

Why GAMBAS BASIC Deserves a Place in Your Development Toolbox

One of GAMBAS’s biggest advantages is its fully integrated development environment (IDE), which resembles VB6 and offers an easy-to-use graphical interface. This makes creating forms, handling events, and connecting to databases significantly faster than using more complex frameworks.

Setting Up a PHP Development Environment on Ubuntu 24.04

Upgrading Ubuntu 18.04 to 20.04 on a server running ISPConfig 3.x can be done safely, but requires careful preparation. In this guide, we discuss how to back up your server, verify ISPConfig compatibility, and perform the upgrade process. By following these steps, you can ensure that the upgrade is smooth and that your websites and services continue running without interruption.

Understanding Unicode: A Deep Dive into Universal Text Encoding

Understanding Unicode: A Deep Dive into Universal Text Encoding

Unicode is a universal encoding standard designed to support every language and symbol in use today. This article provides an in-depth look into how Unicode works in application development, exploring the challenges of string comparison, normalization, and the multiple ways that the same visual character can be represented. Learn how to handle Unicode strings in Python, JavaScript, and C, and discover how normalization can resolve issues when comparing visually identical characters.

Implementing Command Parsers on Arduino Over Serial

Introduction Command parsers are essential in embedded systems for receiving and interpreting commands from a host device, such as a computer or another microcontroller. In this article, we will explore how to implement command parsers on an Arduino over a serial connection, focusing on memory management, text buffer creation and use, string formatting, and handling

Understanding Modbus, SCPI, and GPIB Protocols and Their Implementation in Embedded Systems

Understanding Modbus, SCPI, and GPIB Protocols and Their Implementation in Embedded Systems
Control-Bus Image

A Beginners Guide Introduction Communication protocols are vital for enabling embedded devices to interact effectively. Three prominent protocols, Modbus, Standard Commands for Programmable Instruments (SCPI), and General Purpose Interface Bus (GPIB), stand out due to their widespread adoption in various industrial and testing environments. Recently, I had the opportunity to work on an embedded project

Mastering Assembly with GCC: A Comprehensive Guide to Assembling x86-64 Code

Learn how to master assembly language programming with GCC, focusing on x86-64 architecture. Explore optimization techniques, debugging strategies, and system programming concepts to unleash the full potential of low-level system programming.

Programming Languages: Loved, Loathed, and Long-Standing

The world of programming languages is vast and ever-evolving. Over the decades, many languages have been introduced, gained popularity, and sometimes faded into obscurity. Yet, some languages, despite being widely criticized, have managed to maintain a strong foothold in the industry. Conversely, others, once heralded as the future, have declined in use. This article delves into this phenomenon, examining why some languages are resilient despite criticism, while others have fallen out of favor. We will explore these dynamics globally, understanding regional preferences and the historical context that has shaped the programming landscape.

Building a Simple Modal Line Editor in Python: A Step-by-Step Guide

In this comprehensive tutorial, we guide you through creating a simple modal line editor in Python. Starting from basic functionality, we progressively add features like inserting lines before or after a specified line and implementing a yank command. Perfect for those looking to enhance their Python skills with practical text editing capabilities.