Commit 779451b1 authored by Ian Seyler's avatar Ian Seyler

Update api/libBareMetal.c, api/libBareMetal.asm files

parent 6e660da0
......@@ -15,8 +15,8 @@ b_ethernet_rx equ 0x0000000000100028 ; Polls the Ethernet card for received dat
b_disk_read equ 0x0000000000100030 ; Read from the disk.
b_disk_write equ 0x0000000000100038 ; Write to the disk.
b_config equ 0x0000000000100040 ; View/modify system configuration. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. OUT: RAX = Result
b_system equ 0x0000000000100048 ; Call a misc system function. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. Out: RAX = Result 1, RDX = Result 2
b_config equ 0x0000000000100040 ; View/modify configuration. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. OUT: RAX = Result
b_system equ 0x0000000000100048 ; Call a system function. IN: RCX = Function, RAX = Variable 1, RDX = Variable 2. Out: RAX = Result 1, RDX = Result 2
; Index for b_config calls
......
......@@ -12,13 +12,11 @@ unsigned char b_input(void) {
return chr;
}
void b_output(const char *str, unsigned long nbr) {
asm volatile ("call *0x00100018" : : "S"(str), "c"(nbr));
}
void b_ethernet_tx(void *mem, unsigned long len, unsigned long iid) {
asm volatile ("call *0x00100020" : : "S"(mem), "c"(len), "d"(iid));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment