X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fatari.sgml;h=1affc8362a049e171245427973a072ad68edb931;hb=f94a125f30e561419fb731635403aa7b103b0c00;hp=80293d82f6df41b40310e686cedf45187c1caabb;hpb=a6b04f6e97b59ca0ad1cc98dbd91ad600c0414a8;p=cc65 diff --git a/doc/atari.sgml b/doc/atari.sgml index 80293d82f..1affc8362 100644 --- a/doc/atari.sgml +++ b/doc/atari.sgml @@ -203,6 +203,19 @@ is + +This config file allows writing multi segment binaries easily, without having to +write the header explicitly on each segment. + +It is similar to the This config file can be used to create 8K or 16K cartridges. It's suited both @@ -230,6 +243,18 @@ would need to be split in more parts and the parts to be loaded manually. To write the generated file to a cassette, a utility ( + +This config file shows how to write a binary using the ATARI (xex) file format +support on LD65, this simplifies the memory areas and allows to add new memory +areas easily without writing new headers and trailers. + +Note that the default C library includes the system-check chunk, so in this +linker configuration we suppress the importing of the header and trailer for +this chunk by defining the standard import symbols to a 0 value. For the +initialization address of the system-check chunk, the INITAD is set directly in +the configuration. + default config file ( @@ -253,12 +278,40 @@ The files generated by this config file include the load chunk. It can optionally be left out, see . + + +Similar to the Platform specific header files

Programs containing Atari specific code may use the +... + OS.savmsc = ScreenMemory; + OS.color4 = 14; // white frame + if (OS.stick0 != 15 || OS.ch != 255) // key or stick input? +... + + +Please note that memory location 762/$2FA is called "Atari specific functions

@@ -339,10 +392,11 @@ void DisplayList = DL_CHR20x8x2, DL_BLK4, DL_CHR20x8x2, - DL_JVB + DL_JVB, + &DisplayList }; ... -POKEW(560,(unsigned int)&DisplayList); // SDLSTL +OS.sdlst = &DisplayList; ... @@ -420,7 +474,7 @@ Example: ... while (!kbhit()); - switch (PEEK(764)) + switch (OS.ch) { case KEY_RETURN: ...