Warning
Deprecated.
Compares two strings, sets A to 0 if they are equivalent
Input:
| Input | Description |
|---|---|
| A | The first string |
| B | The second string |
Output:
| Output | Condition |
|---|---|
| 0 | A === B |
| <> 0 | A != B |
Checks whether the first string starts with the second string, sets Y to 0 if it does.
Input:
| Input | Description |
|---|---|
| A | The first string |
| B | The second string |
Output:
| Output | Condition |
|---|---|
| 0 | A starts with B |
| <> 0 | A does not start with B |
Sets A to the length of the given string
Input:
| Input | Description |
|---|---|
| A | The first string |
Output:
| Output | Condition |
|---|---|
| n | The length of zero-terminated string A |
Concatenates two strings
Input:
| Input | Description |
|---|---|
| A | The first string |
| B | The second string |
Output:
| Output | Condition |
|---|---|
| pointer | – |
Note
strcat currently only appends one character.
Prints a new line
Scrolls the screen one line up.
Clears the screen.
Warning
Deprecated.
Warning
Deprecated.
Copies n words from dst to src.
Input:
| Input | Description |
|---|---|
| A | The destination address |
| B | The source address |
| C | The number of words to copy |
Note
It does not do error checking. Yet.
Warning
Deprecated.
Returns a pointer with n words of free space ahead of it.
Input:
| Input | Description |
|---|---|
| A | The number of words requested. |
| B | The owner of the memory to be allocated. |
Output:
| Output | Condition |
|---|---|
| pointer | – |
Sets n words of dst to a constant word.
Input:
| Input | Description |
|---|---|
| A | The destination address |
| B | The word that will fill the destination address. |
| C | The number of words to fill |
Sets free a memory block, and attempts free-block merges.
Input:
| Input | Description |
|---|---|
| A | Pointer to the memory to be freed |
Reads a line (sequence of characters ended by a newline, not included).
Input:
| Input | Description |
|---|---|
| A | The buffer in which the line should be copied. |
Note
You will need to allocate the buffer yourself. Example:
set a, 32
set b, 0x42c
jsr [kern_malloc] ; buffer gets passed to readline as an argument
jsr [kern_readline]
Converts a number to ASCII.
Input:
| Input | Description |
|---|---|
| A | Number. |
| B | The buffer in which the character sequence will be stored. |
| C | Radix |
Note
You will need to allocate the buffer yourself. Example:
set a, 10
set b, 0xDEAD
jsr [kern_malloc]