?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  
  3.   SjASMPlus Z80 Cross Compiler - modified - TZX 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_tzx.h
  28.  
  29. #ifndef __IO_TZX
  30. #define __IO_TZX
  31.  
  32. typedef struct STZXTurboBlock {
  33.         word PilotPulseLen;
  34.         word FirstSyncLen;
  35.         word SecondSyncLen;
  36.         word ZeroBitLen;
  37.         word OneBitLen;
  38.         word PilotToneLen;
  39.         byte LastByteUsedBits;
  40.         word PauseAfterMs;
  41. } STZXTurboBlock;
  42.  
  43. void TZX_CreateEmpty(const char* fname);
  44. void TZX_AppendStandardBlock(const char* fname, const byte* buf, const aint buflen, word pauseAfterMs, byte sync);
  45. void TZX_AppendTurboBlock(const char* fname, const byte* buf, const aint buflen, const STZXTurboBlock& turbo);
  46. void TZX_AppendPauseBlock(const char* fname, word pauseAfterMs);
  47.  
  48. #endif
  49.  
  50. //eof io_tzx.h
  51.