Serge Vakulenko
bae12383a0
Fixed build issues on Linux x86-64.
2015-01-06 19:36:49 -08:00
Serge Vakulenko
8e2c046406
Merge pull request #41 from alexfru/master
...
SmallerC: generate smaller & faster code; bugfixes
2014-12-29 20:06:10 -08:00
alex
dad5247184
Merge branch 'master' of https://github.com/alexfru/retrobsd
2014-12-29 16:36:58 -08:00
alex
b1f67fbca0
SmallerC: generate smaller & faster code; bugfixes
...
Improvements:
- use registers more efficiently
- eliminate some register copies and stack manipulations
- promote left operands to right immediate operands
- improve simple assignments to auto/static vars
- use bltz, blez, bgtz, bgez
- change mul/divu (by powers of 2) to sll/srl/and
- use seb, seh for sign extension instead of sll/sra
- overall generate a bit tighter, faster and more readable asm code
Fixes:
- >>= should be unsigned when the left operand is unsigned int.
The right operand isn't important here.
- very subtle bug in e.g. void f(){int a; &a+1;/*wrong value of &a+1*/}
Other:
- include stdarg.c and skeleton.c in /share/example/Makefile
2014-12-29 16:28:56 -08:00
Serge Vakulenko
f76ab8417c
Merge pull request #39 from alexfru/master
...
Smaller C: Fix >>=
2014-12-13 01:19:36 -08:00
Alexey Frunze
3bb914c8b4
Fix >>=
...
>>= should be unsigned when the left operand is unsigned int. The right
operand isn't important here.
2014-12-13 01:06:53 -08:00
Serge Vakulenko
8b099bcf76
Merge pull request #38 from alexfru/master
...
Correct sd card image name.
2014-12-07 21:58:35 -08:00
Alexey Frunze
2fc41d34cf
Correct sd card image name.
2014-12-07 21:51:06 -08:00
Serge Vakulenko
2301571ecb
Merge pull request #37 from alexfru/master
...
Smaller C fixes and improvements.
2014-12-06 16:38:56 -08:00
alex
00269e9387
Smaller C fixes and improvements:
...
- move va_list type detection under #ifdef as it's rarely needed anyway
- allow up to 254 characters in a string literal
- generate a warning when an integer is passed instead of a pointer (and
vice versa) as a function parameter (pass -Wall for this)
- when printing an unexpected token, print identifier tokens instead of
'<tokIdent>'
- fix: allow most control characters inside '' and ""
- fix handling of -I<path> and -SI<path>
- switch() now supports Duff's device
- for() now supports declarations in its first clause as in C99/C++
2014-12-06 16:18:17 -08:00
Serge Vakulenko
687695d0db
Fixed missing .profile at top level.
2014-10-23 19:08:11 -07:00
Serge Vakulenko
0aa5e1c462
README updated.
2014-10-21 11:28:22 -07:00
Serge Vakulenko
3a7cde7974
Merge pull request #36 from alexfru/master
...
Smaller C: Fix MIPS code generation for -= and postfix --. Also convert most of Small C sample programs to Smaller C.
2014-10-21 00:16:19 -07:00
alex
f57cc446b0
Remove no longer applicable comment.
2014-10-19 00:53:29 -07:00
alex
1a55933faf
Merge branch 'master' of https://github.com/alexfru/retrobsd
2014-10-19 00:25:23 -07:00
alex
b18ce0aa87
Fix MIPS code generation for -= and postfix --.
...
Also convert most of Small C sample programs to Smaller C.
2014-10-19 00:22:44 -07:00
alex
5bbf8d4e73
Fix MIPS code generation for -= and postfix --.
...
Convert most of Small C sample programs to Smaller C.
2014-10-19 00:13:00 -07:00
Sergey
7aa774702b
Fubarino configuration modified to use Arduino-compatible bootloader.
2014-10-04 14:30:21 -07:00
Sergey
64430a0f91
Added comfiguration for Majenko SDXL board.
...
DIP and Pinguino-micro boards removed - nobody uses these.
Deleted unused linker scripts.
2014-10-04 13:57:03 -07:00
Serge Vakulenko
d5e30d7b79
Fixed help message for fsutil.
2014-09-26 21:05:27 -07:00
Serge Vakulenko
a8d9b3d01f
Makefiles updated for man sources.
2014-09-25 19:31:55 -07:00
Serge Vakulenko
ebd35d772f
Fixed bug in 'make installfs'.
2014-09-25 18:09:06 -07:00
Serge Vakulenko
c4da2137e1
Added man sources from 2.11bsd tape.
2014-09-25 17:14:51 -07:00
Serge Vakulenko
c42133cdff
Fixed newlines in crib game.
2014-09-25 13:44:51 -07:00
Sergey
dc66e6fdda
Fsutil enhanced to create and handle partitions.
2014-09-20 18:54:13 -07:00
Serge Vakulenko
f58c7a7426
Added missing files for atc, boggle, btlgammon, cribbage.
2014-09-17 13:54:28 -07:00
Serge Vakulenko
5c4309942a
Merge branch 'games'.
2014-09-17 13:21:59 -07:00
Serge Vakulenko
e557c88b1e
Added manual for atc game.
...
Cribbage manuals installed.
2014-09-17 13:00:06 -07:00
Serge Vakulenko
850797db2e
Fixed snake game.
...
Fixed newline bug in libcurses.
File /etc/termcap replaced by small version. Five TERM types supported:
ansi - simple generic display;
xterm - common for most modern terminal emulators;
linux - for Linux console;
cons25 - for BSD console;
vt100 - for DEC VT100 terminal emulators.
Terminal type xterm set by default.
2014-09-15 20:40:04 -07:00
Serge Vakulenko
cae7db41ca
Snake fixed.
2014-09-15 14:24:17 -07:00
Serge Vakulenko
808dfaf6ef
Ported snake game.
2014-09-15 12:28:43 -07:00
Sergey
d3d48970e3
Some progress with snake game.
2014-09-14 23:19:06 -07:00
Sergey
93d95abc69
Fixed warning in fsutil.
2014-09-13 15:17:30 -07:00
Serge Vakulenko
c5ac22d17f
Ported robots game.
2014-09-12 13:32:16 -07:00
Serge Vakulenko
e7b77dadc3
Ported quiz game.
2014-09-12 12:03:11 -07:00
Serge Vakulenko
2ea9e02ba5
Monop game done.
2014-09-10 20:48:05 -07:00
Serge Vakulenko
d9d91365c0
Fixed warning in mille.
2014-09-10 20:09:59 -07:00
Serge Vakulenko
2da083e9bd
Some progress on 'monop' game.
2014-09-08 21:36:15 -07:00
Serge Vakulenko
e4e9ff1ef4
Ported mille game.
2014-09-08 19:19:18 -07:00
Serge Vakulenko
aecac2f5d7
Ported hangman.
2014-09-08 18:07:59 -07:00
Serge Vakulenko
8886a00340
Ported fortune.
2014-09-08 12:30:17 -07:00
Serge Vakulenko
25bcc79a69
Merge branch 'master' into games.
...
Conflicts:
Makefile
2014-09-08 11:31:12 -07:00
Serge Vakulenko
8d55f87ab8
Fsutil: dynamically allocate data structure for file i/o.
2014-09-04 19:29:18 -07:00
Matt Jenkins
9adca14b87
Added hx8357 TFT driver for PICadillo
2014-08-30 21:17:16 +01:00
Matt Jenkins
83a999be0a
Added definitions for picadillo, and spi sram device
2014-08-27 23:13:26 +01:00
Sergey
1462eeb400
Using manifest files to create root and user filesystems.
2014-08-03 15:53:53 -07:00
Serge Vakulenko
d42bfdc7b9
Fsutil: can read manifest files.
...
Added a manifest for root filesystem.
2014-08-01 21:23:38 -07:00
Serge Vakulenko
1cdf42ef94
Fsutil: inode API simplified.
2014-08-01 18:17:38 -07:00
Serge Vakulenko
8f4aad27f9
Fsutil: able to create filesystem contents from manifest.
2014-08-01 17:49:59 -07:00
Serge Vakulenko
cb4ca7f73a
Fsutuil: move manifest routines to a separate file.
2014-08-01 14:29:22 -07:00