?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. /*
  2.  
  3.   SjASMPlus Z80 Cross Compiler - modified - SAVECPCSNA extension
  4.  
  5.   Copyright (c) 2006 Sjoerd Mastijn (original SW)
  6.  
  7.   This software is provided 'as-is', without any express or implied warranty.
  8.   In no event will the authors be held liable for any damages arising from the
  9.   use of this software.
  10.  
  11.   Permission is granted to anyone to use this software for any purpose,
  12.   including commercial applications, and to alter it and redistribute it freely,
  13.   subject to the following restrictions:
  14.  
  15.   1. The origin of this software must not be misrepresented; you must not claim
  16.          that you wrote the original software. If you use this software in a product,
  17.          an acknowledgment in the product documentation would be appreciated but is
  18.          not required.
  19.  
  20.   2. Altered source versions must be plainly marked as such, and must not be
  21.          misrepresented as being the original software.
  22.  
  23.   3. This notice may not be removed or altered from any source distribution.
  24.  
  25. */
  26.  
  27. // io_cpc_ldrs.h
  28.  
  29. // CPC464 loader
  30.  
  31. const byte SaveCDT_AmstradCPC464[] = {
  32.         0x3E, 0xFF, 0xCD, 0x6B, 0xBC, 0x3A, 0x26, 0x80, 0xB7, 0x28, 0x0B, 0x21, 0x00, 0xC0, 0x11, 0x00,
  33.         0x40, 0x3E, 0x16, 0xCD, 0xA1, 0xBC, 0x2A, 0x27, 0x80, 0xE5, 0x2A, 0x29, 0x80, 0xED, 0x5B, 0x2B,
  34.         0x80, 0x3E, 0x16, 0xC3, 0xA1, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  35. };
  36.  
  37. constexpr aint SaveCDT_AmstradCPC464_ORG = 0x8000;
  38. constexpr aint SaveCDT_AmstradCPC464_Len = sizeof(SaveCDT_AmstradCPC464);
  39. constexpr aint SaveCDT_AmstradCPC464_Settings = 0x26; // Offset to "Settings" block
  40.  
  41. // CPC6128 loader
  42.  
  43. const byte SaveCDT_AmstradCPC6128[] = {
  44.         0x3E, 0xFF, 0xCD, 0x6B, 0xBC, 0x3A, 0x56, 0x80, 0xB7, 0x28, 0x0B, 0x21, 0x00, 0xC0, 0x11, 0x00,
  45.         0x40, 0x3E, 0x16, 0xCD, 0xA1, 0xBC, 0x21, 0x5D, 0x80, 0x7E, 0x23, 0xB7, 0x28, 0x28, 0xF5, 0x7E,
  46.         0x23, 0xF6, 0xC0, 0x06, 0x74, 0x4F, 0xF3, 0xED, 0x49, 0x4E, 0x23, 0x46, 0x23, 0x5E, 0x23, 0x56,
  47.         0x23, 0xE5, 0x21, 0x00, 0x40, 0x09, 0x3E, 0x16, 0xCD, 0xA1, 0xBC, 0x01, 0xC0, 0x74, 0xED, 0x49,
  48.         0xE1, 0xFB, 0xF1, 0x3D, 0x20, 0xD8, 0x2A, 0x57, 0x80, 0xE5, 0x2A, 0x59, 0x80, 0xED, 0x5B, 0x5B,
  49.         0x80, 0x3E, 0x16, 0xC3, 0xA1, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  50. };
  51.  
  52. constexpr aint SaveCDT_AmstradCPC6128_ORG = 0x8000;
  53. constexpr aint SaveCDT_AmstradCPC6128_Len = sizeof(SaveCDT_AmstradCPC6128);
  54. constexpr aint SaveCDT_AmstradCPC6128_Settings = 0x56;
  55. constexpr aint SaveCDT_AmstradCPC6128_Pages = 0x5D;
  56. constexpr aint SaveCDT_AmstradCPC6128_PageEntrySize = 0x05;
  57.  
  58. // eof io_cpc_ldrs.h
  59.