Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
347B

  1. 0x20 CONSTANT ACIABUFSZ
  2. ( Points to ACIA buf )
  3. : ACIA( [ ACIA_MEM 4 + LITN ] ;
  4. ( Points to ACIA buf end )
  5. : ACIA) [ ACIA_MEM 6 + LITN ] ;
  6. ( Read buf pointer. Pre-inc )
  7. : ACIAR> [ ACIA_MEM LITN ] ;
  8. ( Write buf pointer. Post-inc )
  9. : ACIAW> [ ACIA_MEM 2 + LITN ] ;
  10. ( This means that if W> == R>, buffer is full.
  11. If R>+1 == W>, buffer is empty. )