Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Mar 10, 2023
1 parent 643e104 commit 5aca46a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.o
*.lib
*.lib
build/
18 changes: 14 additions & 4 deletions docs/api/pbar-lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@ oricproject/$ mkdir libs
oricproject/$ cd libs && curl http://repo.orix.oric.org/dists/2023.1/tgz/6502/pbar-lib.tgz
oricproject/$tar xvfz http://repo.orix.oric.org/dists/2023.1/tgz/6502/pbar-lib.tgz

And build your program

cl65 -ttelestrat myprogram.c libs/lib8/pbar.lib -o pbar

## Functions

### pbarInit

"struct pbar *pbarInit(unsigned char pbartype)" returns a pbar ptr struct (a malloc to the Orix kernel), arg is the type of the pbar, for instance one pbar type is available

pbarRun display the next percentage and the next char for the progressbar. Each type the pbarRun is called, the bar add "3%" to the current percentage.
### pbarRun

"void pbarRun(unsigned char step, struct pbar *ptr)" displays the next percentage and the next char for the progressbar. Each type the pbarRun is "called, the bar add "3%" to the current percentage.

Step arg is not used yet. pbarRun must be called 34 times to have almost the complete bar. pbarEnd will displays 100% and will free pbar struct.

* void pbarRun(unsigned char step, struct pbar *ptr);
### pbarEnd

pbarEnd finishes the bar and free the pbar ptr
"void pbarEnd(struct pbar *ptr);" finishes the bar and free the pbar ptr

* void pbarEnd(struct pbar *ptr);*

## information in ASM

Expand Down

0 comments on commit 5aca46a

Please sign in to comment.