当我开始学习如何测试一个程序时,我学到的就是用与测试程序相同的语言使用一个库或包。例如,
- if a tested program is written in Python, its testing program is also written in Python and uses `UnitTest` class in the python standard library
- if a tested program is written in C++, its testing program is also written in C++ and uses some test
我必须给出汇编语言中数据类型的具体定义。并给出了对不同类型的数据类型使用变量(有初始化和无初始化)进行声明的示例。
数据类型有:字节、字、d字。举个例子我可以说:
a db 10
b dw 128 (here I can write b db 128?)
c dd 2AFBH
这是有初始化的例子,但我如何在没有初始化的情况下编写?
在NASM中,你可以看到像这样的东西
msg: db "Hello world!", 0 ; we need to explicitely put the zero byte here
times 510-($-$$) db 0 ; fill the output file with zeroes until 510 bytes are full
dw 0xaa55 ; magic number that tells the BIOS this is bootable
据我理解,这些是编译器特有的“帮助者”(NA