X01.wos.5: Adding features

Source: Internet
Author: User

Preparatory work
1. Ensure that it is win XP, in the case of Win 8, run NASM You must follow the prompts to agree to install the components.
2. Make sure Src and z_tools are in the same directory, NASM is already included in the Z_tools folder.
3.bmp.nasm need Nasm.exe compile, format is-f Win32, see App/makefile.
The 4.app/haribote.rule file was slightly modified.
How to use
1. Go to the SRC folder, double-click Cmd.bat, and enter the following command in the Command line window:
CD Apilib
Cd.. /app
Cd.. /


2. After the operating system starts, SHIFT + F2 can open the new terminal and enter exit to close the terminal.

3. Enter WINHI carriage return in terminal, type BOOT.S carriage return to get the initial experience. As follows:

4. Enter Tview Boot.s in terminal to browse files, Gview 1.bmp to view pictures, press Q or Q to close. As follows:

5. Enter ball in the terminal is a small game, the space bar fired bullets, 4, 62 number keys move around, hit X close. As follows:

A little improvement

1. Add the Api028.s file with the following content:

[format "Wcoff"]
[Instrset "i486p"]
[Bits 32]
[File "Api028.nas"]

Global _api_setlang

[section. Text]
_api_setlang:; void Api_setlang (int mode);
MOV edx,28
mov eax, [ESP + 4]
int 0x40

2.apilib/makefile of course to make the corresponding changes, the change is only one place, is to add Api028.obj in the APIOBJS.

3. Modify App/api.h, also add only one place, namely Api_setlang declaration: void Api_setlang (int mode);

4. Modify APP/CALC.C and add the following code at the beginning of Harimain ():

int oldmode = Api_getlang ();

Api_setlang (0);

Add the following code to the penultimate line:

Api_setlang (Oldmode);

5. Recompile, ok! Calc can now be unaffected by Japanese characters.

The above is also a general step to add your own functionality.

Download Link: OS source code

Also: The code is also available to x01. Lab.download, above is the link in CSDN. Because the blog park sometimes can not display pictures, so in the CSDN also got a copy.

X01.wos.5: Adding features

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.