1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-04-21 23:37:08 +00:00

Commit Graph

  • 1942a75d9e More documentation; remove DEFWIDTH/DEFHEIGHT Peter Evans 2017-12-27 17:14:54 -06:00
  • 6a230341e1 Make vm_area_set be an inline function. Peter Evans 2017-12-27 17:10:51 -06:00
  • 30223e0bca Remove screen area field; document area fields Peter Evans 2017-12-27 16:59:56 -06:00
  • 27f91ec00f Use vm_area with bitfont_offset Peter Evans 2017-12-27 16:47:26 -06:00
  • efb8f04555 Use vm_area for draw_rect. Peter Evans 2017-12-27 16:42:30 -06:00
  • c7b830bb4a Switch references from SDL_Rect to vm_area Peter Evans 2017-12-27 16:31:02 -06:00
  • 5407ce2d32 Add documentation for option functions Peter Evans 2017-12-27 14:32:13 -06:00
  • 76191991c8 Add a lot of missing documentation Peter Evans 2017-12-27 01:14:52 -06:00
  • bcf354989d Tests for bitfont and screen Peter Evans 2017-12-27 01:02:56 -06:00
  • eeecaf4bdc Add tests for get_width and get_height Peter Evans 2017-12-26 22:35:50 -06:00
  • 04d40a44f9 Reorganize tests Peter Evans 2017-12-26 17:20:06 -06:00
  • f8ce9ae1d1 Documentation Peter Evans 2017-12-26 17:13:34 -06:00
  • 8146687110 Don't create a window when testing Peter Evans 2017-12-26 17:06:08 -06:00
  • 5b35e2294e Add tests for new functions in apple2 Peter Evans 2017-12-26 17:03:32 -06:00
  • 89a6161272 Reorganize header files Peter Evans 2017-12-26 16:47:34 -06:00
  • 253db81460 Comment out unused instruction string table Peter Evans 2017-12-26 16:45:24 -06:00
  • 81804532df Reorganize log.c Peter Evans 2017-12-26 16:44:28 -06:00
  • 68084cc0c3 Add apple2 header file Peter Evans 2017-12-26 16:43:08 -06:00
  • a86fc8e80e Reorganize Peter Evans 2017-12-26 16:42:04 -06:00
  • 5fbd921d83 Reorganize Peter Evans 2017-12-26 16:39:32 -06:00
  • f5af03786d Reorganize Peter Evans 2017-12-26 16:39:23 -06:00
  • f50d599545 Beginnings of lo-res graphics Peter Evans 2017-12-24 15:07:24 -06:00
  • 7b19279f1d No need for this comment any longer Peter Evans 2017-12-22 20:45:26 -06:00
  • 4ad690212f Blank out the space we want to render a character Peter Evans 2017-12-22 17:49:36 -06:00
  • 29652b2368 Implement draw text functionality Peter Evans 2017-12-22 15:48:48 -06:00
  • b2c1bd9e6d Hello world, in rendered text; use nearest pixel sampling Peter Evans 2017-12-22 12:56:22 -06:00
  • 979ca65f43 Add bitmap font to apple2, remove rectangle draw Peter Evans 2017-12-21 23:33:04 -06:00
  • adac6346e8 Add color mode, text video modes Peter Evans 2017-12-21 11:52:56 -06:00
  • 87b67216b0 Default to lo-res mode Peter Evans 2017-12-20 21:54:54 -06:00
  • 23e113e72a Add video mode switcher to handle logical sizes Peter Evans 2017-12-20 21:52:28 -06:00
  • 7d62548248 Add the bones of the draw functions and file Peter Evans 2017-12-20 21:33:15 -06:00
  • f55b608bee Move screen run logic into apple run_loop and create Peter Evans 2017-12-20 20:45:26 -06:00
  • 8c23f3fa7e Switch window sizes for 4.375:3 Peter Evans 2017-12-20 19:32:54 -06:00
  • 53db99f4fd Use size options for window Peter Evans 2017-12-20 17:08:19 -06:00
  • 609e3eea7c Add size option, functions to get width and height Peter Evans 2017-12-20 17:06:03 -06:00
  • b1c146c62d Add ability to set logical size of window at any time Peter Evans 2017-12-20 16:44:24 -06:00
  • f31fcd9c37 Add support for vm_bitfont Peter Evans 2017-12-19 21:50:50 -06:00
  • aefe74cae4 Use BMP format, since SDL can load it natively. Peter Evans 2017-12-19 16:13:04 -06:00
  • aad60fa629 Oh, lord, I included my random natterings Peter Evans 2017-12-19 15:35:10 -06:00
  • 6db322ae5c I wrote a tool to build fonts from grid files. Peter Evans 2017-12-19 15:28:42 -06:00
  • 28cd93d5e9 Do static analysis if env variable is set Peter Evans 2017-12-19 01:02:48 -06:00
  • dfbe0750ae In which I spent an evening plotting a bitmap font Peter Evans 2017-12-19 00:48:06 -06:00
  • c84f194c8b Get our test suite working with SDL Peter Evans 2017-12-18 14:46:40 -06:00
  • 05a641c8f6 Use SDL's render logical size feature Peter Evans 2017-12-18 14:32:15 -06:00
  • f3966dc010 Enable static analysis through clang Peter Evans 2017-12-18 14:26:53 -06:00
  • 4ef9e50792 Really basic implementation of SDL2. Peter Evans 2017-12-17 23:31:56 -06:00
  • ad37d59b2d Remove references to OpenGL/GLFW/GLEW Peter Evans 2017-12-17 20:20:11 -06:00
  • afa07e346f A few comments Peter Evans 2017-12-17 19:22:33 -06:00
  • 83dcfaf646 Add glew, defines for width/height Peter Evans 2017-12-17 19:09:54 -06:00
  • a73c15c37c Rename vm_screen_context to vm_screen Peter Evans 2017-12-17 16:42:05 -06:00
  • 8beb761535 Actually show a window. Peter Evans 2017-12-16 23:38:59 -06:00
  • b646bfc511 First stab at adding graphics. Peter Evans 2017-12-16 22:45:39 -06:00
  • 294fab76aa Add boot function; modify main to use apple2 boot Peter Evans 2017-12-15 22:22:40 -06:00
  • 3f3210205f We missed the size multiplier for memset() Peter Evans 2017-12-15 21:22:22 -06:00
  • ed1a7b3278 Rename to read/write (without byte) Peter Evans 2017-12-15 21:03:38 -06:00
  • 047d9eabd0 Add tests for read/write Peter Evans 2017-12-15 21:01:49 -06:00
  • 4cc79b1ba8 Add 140k, 240k, decls for read/write Peter Evans 2017-12-15 21:01:15 -06:00
  • b07848dd9d Change name; move 140k, 240k Peter Evans 2017-12-15 21:00:59 -06:00
  • 9c646435c5 Add bad image file for testing Peter Evans 2017-12-15 16:53:22 -06:00
  • 223edd14fe Add shift test Peter Evans 2017-12-15 16:53:12 -06:00
  • 06c8d623e7 Move MAX_SECTOR_POS and change shift into a while loop Peter Evans 2017-12-15 16:52:47 -06:00
  • c5c010699c Move MAX_SECTOR_POS into header file Peter Evans 2017-12-15 16:52:35 -06:00
  • 0c82a58f79 Add ERR_BADFILE Peter Evans 2017-12-15 16:52:26 -06:00
  • eae302e686 Add eject, insert tests Peter Evans 2017-12-15 16:46:40 -06:00
  • a034408f03 Add headers for insert, shift Peter Evans 2017-12-15 16:46:22 -06:00
  • 079a35507c A number of updates in heavy dev phase Peter Evans 2017-12-15 16:45:20 -06:00
  • 256e0cf1d6 Don't write to the log stream if null Peter Evans 2017-12-15 16:28:14 -06:00
  • 7811f4da44 No, use actual zero bytes Peter Evans 2017-12-15 14:39:57 -06:00
  • 9689d984bc Add data directory, image file with all zeroes Peter Evans 2017-12-14 23:22:10 -06:00
  • a48bc05bd0 Further testing Peter Evans 2017-12-14 23:09:32 -06:00
  • e84b79819b Allow position function to be globally visible Peter Evans 2017-12-14 23:08:50 -06:00
  • 4dffea1dda Make position non-static; add case for NULL data Peter Evans 2017-12-14 23:08:33 -06:00
  • cebdedeff0 Add initial test suite for apple2dd Peter Evans 2017-12-14 22:47:11 -06:00
  • f629b350fa We can't have a negative track pos; zero is the lowest Peter Evans 2017-12-14 22:46:50 -06:00
  • a82348ff9a Missing header files, esp. stdbool Peter Evans 2017-12-14 22:30:09 -06:00
  • a81f422d2d Add apple2.dd.c to source file list Peter Evans 2017-12-14 22:28:24 -06:00
  • 82d22c8fab Change name of header file in #include Peter Evans 2017-12-14 22:27:45 -06:00
  • 091939b06b Renaming files Peter Evans 2017-12-14 22:24:30 -06:00
  • 24e599a8fd Rename to apple2dd; add read/write functions Peter Evans 2017-12-14 22:14:55 -06:00
  • 58137cb2a0 Remove io_byte field; rename to apple2dd Peter Evans 2017-12-14 22:13:39 -06:00
  • 0162544fa6 Add initial struct and drive code Peter Evans 2017-12-13 20:30:32 -06:00
  • 577e92de9e Documentation is good. Write documentation. Peter Evans 2017-12-12 15:10:42 -06:00
  • 060b7000de Add tests to prove read/write mappers are used Peter Evans 2017-12-12 15:07:26 -06:00
  • 7da3c2ec20 Make use of our read/write mappers Peter Evans 2017-12-12 15:00:47 -06:00
  • e019b6daee A warning to the concerned Peter Evans 2017-12-12 14:59:00 -06:00
  • 7da2f9e791 Add support for setting read/write map functions Peter Evans 2017-12-12 14:58:06 -06:00
  • ca7e576266 Use a setup and teardown function Peter Evans 2017-12-12 14:53:45 -06:00
  • bb92162dba Zero, not NULL. Peter Evans 2017-12-12 14:45:48 -06:00
  • 0bcf9e006d Explicit test that memory (plus others) are zeroed Peter Evans 2017-12-12 14:45:06 -06:00
  • da62ac4ca6 Use double-slash comments Peter Evans 2017-12-12 14:35:13 -06:00
  • 6f4627802f We should also NULL out segment memory. Peter Evans 2017-12-12 14:33:55 -06:00
  • 06705f21fc Add mallocs for read/write tables, NULL-out code Peter Evans 2017-12-12 14:32:32 -06:00
  • b36bb78a12 Add read/write map functions to vm_segment Peter Evans 2017-12-12 14:31:44 -06:00
  • daab8a7f58 Add instruction strings (mapped to enum symbols) Peter Evans 2017-12-11 21:03:16 -06:00
  • 850fdc55b5 Add error codes to segment functions Peter Evans 2017-12-09 15:16:56 -06:00
  • c4a6f77bcd We should be using the rts handler function Peter Evans 2017-12-09 14:53:18 -06:00
  • a720246e26 We need to account for the P register on the stack Peter Evans 2017-12-09 14:52:55 -06:00
  • f44b029083 We need to check P's value as well Peter Evans 2017-12-09 14:50:33 -06:00
  • 96b2542ea6 CARRY should be set if oper > 0 Peter Evans 2017-12-09 14:47:49 -06:00
  • 3954b1647f Missing status modifications in a number of instructions Peter Evans 2017-12-08 23:26:46 -06:00