i8087 / mlib Goto Github PK
View Code? Open in Web Editor NEWA nonstandard C library for MikeOS API.
License: BSD 2-Clause "Simplified" License
A nonstandard C library for MikeOS API.
License: BSD 2-Clause "Simplified" License
I have found another error in the MikeOS documentation.
All disk functions use the carry flag to report a disk error, except os_get_file_list which returns a blank string. However, the MikeOS documentation fails to mention that os_create_file and os_remove_file use the carry flag to indicate an error.
I checked your implementation and found your 'load_file', 'create_file' and 'remove_file' functions do not handle the carry flag. Additionally, in 'get_file_size' you return zero as the file size if a disk error occurs, which may be misleading.
Would probably be desirable to put the mikedev.inc
defined keywords into mlib.h
for use at the C level.
The MikeOS function long_int_negate
takes and returns a 32-bit value held in DX:AX Unfortunately, SmallerC doesn't support long types, so a special structure should be used and implemented like the one below.
typedef struct b_int {
int low;
int high;
} b_int;
argc
and argv
aren't handled properly in crt0.asm
.
MikeOS 4.6 will require an additional parameter for the function os_input_string
. This should be implement soon as it's a quick fix.
Running a program built with mlib will make MikeOS freeze.
Finish adding all of the functions for the following categories:
Same problem as issue #3.
The function string_parse
returns multiple strings. A simple solution to the problem would be to create a structure that points to all of the strings.
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.