File: sample.M1

package info (click to toggle)
mescc-tools 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,640 kB
  • sloc: ansic: 9,338; asm: 2,350; sh: 360; makefile: 163; lisp: 83
file content (58 lines) | stat: -rw-r--r-- 1,890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
## Copyright (C) 2017 Jeremiah Orians
## This file is part of stage0.
##
## stage0 is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## stage0 is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with stage0.  If not, see <http://www.gnu.org/licenses/>.

; 8bit tests
!0x-80  	; deal with -128
!0x-1   	; deal with -1
!0xFF   	; deal with 255
!0x-0   	; deal with -0
!0x0    	; deal with 0
!-128   	; deal with -128
!-1     	; deal with -1
!255    	; deal with 255
!0      	; deal with 0
!0x12   	; Check for nybble order
!0x34   	; Check for nybble order
!0x56   	; Check for nybble order
!0x78   	; Check for nybble order
!0x90   	; Check for nybble order

; 16bit tests
@0x-8000	; deal with -32768
@0x-1   	; deal with -1
$0xFFFF 	; deal with 65535
@0x-0   	; deal with -0
@0x0    	; deal with 0
@-32768 	; deal with -32768
@-1     	; deal with -1
$65535  	; deal with 65535
@0      	; deal with 0
@0x1234 	; Check for nybble order across bytes
@0x5678 	; Check for nybble order across bytes
$0x9012 	; Check for nybble order across bytes

; 32bit tests
%0x-80000000	; deal with -2147483648
%0x-1       	; deal with -1
&0xFFFFFFFF 	; deal with 4294967295
%0x-0       	; deal with -0
%0x0        	; deal with 0
%-2147483648	; deal with -2147483648
%-1         	; deal with -1
&4294967295 	; deal with 4294967295
%0          	; deal with 0
%0x12345678 	; Check for nybble order across bytes
&0x90123456 	; Check for nybble order across bytes