1
0
mirror of https://github.com/fachat/xa65.git synced 2024-12-28 16:31:08 +00:00

tests for long lines

This commit is contained in:
fachat 2012-08-17 12:33:22 +02:00
parent 1399e1071c
commit 73299e33a5
2 changed files with 26 additions and 0 deletions

6
xa/tests/line/Makefile Normal file
View File

@ -0,0 +1,6 @@
all: test1
%:%.a65
../../xa $<

20
xa/tests/line/test1.a65 Normal file
View File

@ -0,0 +1,20 @@
/*
* tests the internal line presentation getting over 128
*/
#define MAX_ENDPOINTS 4
*=$c000
txmax .dsb MAX_ENDPOINTS, 0 ; max transfer length per endpoint
txpos .dsb MAX_ENDPOINTS, 0 ; endpoint buffer position per endpoint, calculated at usbd_start
txlen .dsb MAX_ENDPOINTS, 0 ; endpoint buffer length, set per transaction
/*
* tests the internal line presentation getting over 256
*/
txpos2 .byt MAX_ENDPOINTS, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ; endpoint buffer position per endpoint, calculated at usbd_start and even more comments, but the many values alone use 5 byte per value internally...