8086 assembly basic masm compilation source file

    IDE : Masm for Windows Integrated experimental environment 2015       OS : Windows 10 x64typesetting : Markdown        blog : my.oschina.net/zhichengjiu       gitee : gitee.com/zhichengjiu   demo.asm datas segment ;Segment code datas ends stacks segment ;Stack segment code stacks ends codes segment assume cs:codes,ds:datas ...

Posted on Tue, 15 Oct 2019 10:03:16 -0400 by zxiny_chin

Input, output and interruption

Input, output and interruption Principle of Assembly Language Microcomputer 8086 Topic 1 Problem Description There is an input device whose data port address is FFE0H and the state is provided from the port FFE2H. When its D0 bit is 1, the input data is ready. Try to write a program segment that uses query mode to transmit data. ...

Posted on Sat, 06 Jul 2019 16:59:54 -0400 by jyhm

Hacker Attack and Defense Technology - System Actual Warfare Chapter 2 - Stack Overflow 2

Reference: "The Treasure Book of Hacker Attack and Defense Technology - System Actual Warfare" Assembly Language In the previous section, we have a clear understanding of stack overflow. This section explains stack overflow from the following points: 1) stack buffer overflow 2) Control EIP 3) Exploiting vulnerabilities to gain p ...

Posted on Fri, 21 Jun 2019 13:52:54 -0400 by slough

Introduction to Compiler

A compiler is a program that translates other programs. Traditional compilers translate source code into executable machine code that the computer can understand (some translate source code into another programming language). These compilers are called source-to-source translators or transpilers. LLVM It is a widely used compiler project, which ...

Posted on Tue, 04 Jun 2019 13:47:12 -0400 by Jackdaw

cas implements lock-free stack and queue

Article directory What is CAS? What can we do? What's the difference between CAS and Linux ordinary locks? Linux Ordinary Locks: CAS: Atomic operation Disadvantages of CAS operation CAS implements lock-free stack CAS implements lock-free queue What is CAS? What can we do? CAS (Compare-and-Swap), i.e. comparison and sub ...

Posted on Thu, 16 May 2019 03:10:06 -0400 by benmay.org

Take you to the door of kernel development | the use of spinlocks

The matching code can be downloaded from github of this number. https://github.com/shuningzhang/linux_kernel Spinlock should be the most used lock in the Linux kernel. Many other locks rely on spinlock. We'll start with spin locks today, followed by other mutually exclusive mechanisms in the Linux kernel. Literally, we can see ...

Posted on Wed, 08 May 2019 12:33:39 -0400 by cdinca

Perf top-p `pidof mysqld` analysis of mysql performance consumption

perf top is mainly used for real-time analysis of the heat of each function on a performance event. It can quickly locate hotspot functions, including application functions. Modular functions and kernel functions can even locate hot instructions. The default performance event is cpu cycles. [root@localhost neptuneTest]# perf top -p `pidof ...

Posted on Thu, 07 Feb 2019 09:06:17 -0500 by scrypte