?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1.     ; this was changed from fatal error to regular error by request of Neo-spectruman
  2.     ; although this seems not very practical, as the internal address will be derailed,
  3.     ; probably causing extra errors later, but whatever, you should fix errors in your code
  4.     ORG $8000
  5.  
  6.     ; test error upon "too short" due to wrong offset
  7.     INCBIN "incbin_tooshort.asm", 4000, 1
  8.     ASSERT $8000 == $   ; nothing was included
  9.  
  10.     ; test error upon "too short" due to wrong length
  11.     INCBIN "incbin_tooshort.asm", -5, 10
  12.     ASSERT $8005 == $   ; 5 bytes were included
  13.  
  14.     ; test error upon "too short" due to wrong combination of offset and length
  15.     INCBIN "incbin_tooshort.asm", -5, -10
  16.     ASSERT $8005 == $   ; nothing included
  17.  
  18.     ; test error upon "too short" due to wrong combination of offset and length
  19.     INCBIN "incbin_tooshort.asm", 5, 4000
  20.     ; N bytes will be included, up to current file length
  21.     ASSERT $8005 + 4000 != $    ; but not 4000 for sure
  22.