tanyugang / codingmaster Goto Github PK
View Code? Open in Web Editor NEWCoding Master系列教程配套代码。
Coding Master系列教程配套代码。
Lines 67 to 72 in 118da7a
Lines 17 to 22 in 118da7a
在Program.asm中预留了128字节作为栈段,但是在程序运行过程中,仍然使用的是原有的栈区,并没有使用创建好的栈段。是否可以通过添加以下代码的方式,修改栈?
CodeStart:
mov bx, [StackSeg]
mov ss, bx
mov sp, 128
mov ax, [DataSeg]
mov ds, ax
xor si, si
call PrintString
jmp $
经过编译后,ProgramEnd
的值是0x00000000
。似乎在nasm 中,标签都是相对于section
的偏移地址
Line 6 in 118da7a
Lines 57 to 58 in 118da7a
见第六行:
1 NUL equ 0x00
2 SETCHAR equ 0x07
3 VIDEOMEM equ 0xb800
4 STRINGLEN equ 0xffff
5 section head align=16 vstart=0
6 00000000 [00000000] Size dd ProgramEnd;4B 0x00
7 SegmentAddr:
8 00000004 [00000000] CodeSeg dd section.code.start;4B 0x04
9 00000008 [00000000] DataSeg dd section.data.start;4B 0x08
10 0000000C [00000000] StackSeg dd section.stack.start;4B 0x0c
11 SegmentNum:
12 00000010 03 SegNum db (SegmentNum-SegmentAddr)/4;1B 0x10
13 00000011 [0000] Entry dw CodeStart;2B 0x11
14 00000013 [00000000] dd section.code.start;4B 0x13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.