summaryrefslogtreecommitdiff
path: root/test/struct.s
blob: 33de1f151181b7ac599c101f6ccba24ee79e8648 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.struct lol
	oof .byte
	cia .word
	glo .dword
	nig .qword
	.union asd
		f  .qword
		ss .byte
		.struct aa
			lol .qword
			why .word
		.endstruct
	.endunion
	.union
		alkjf	.byte
		lksfja	.word
		.struct a
			asd	.byte
			dd	.byte
			.struct
				sdd	.byte
				aas	.byte
				.union no
					asd	.byte
					ss	.word
				.endunion
			.endstruct
		.endstruct
		aad	.byte
	.endunion
	why .word
.endstruct

.struct oof
	lol	.word
	.union
		.struct asd
			s	.word
			f	.byte
			e	.word
		.endstruct
		.struct a
			asd	.byte
			dd	.byte
			.struct
				sdd	.byte
				aas	.byte
				.union no
					asd	.byte
					ss	.word
				.endunion
			.endstruct
		.endstruct
		as	.word
		ll	.word
	.endunion
	ass	.word
.endstruct


.org 0

lda #1
ldb #lol.asd.f
ldx #lol.asd.ss
ldy #lol.glo
lda #lol.oof
ldb #lol.asd.aa.lol
ldx #lol.asd.aa.why
ldy #lol.why
a
;l a
;v
q