Compare commits
2 Commits
6c146098ee
...
0bf00df07c
Author | SHA1 | Date | |
---|---|---|---|
0bf00df07c | |||
35a5a9ada2 |
@ -5,7 +5,7 @@ mov sp,#STACK
|
|||||||
MOV SI,#DATA
|
MOV SI,#DATA
|
||||||
|
|
||||||
GNOME_SORT:
|
GNOME_SORT:
|
||||||
CMP SI,#DATA+7
|
CMP SI,#DATA+31
|
||||||
JZ GNOMED
|
JZ GNOMED
|
||||||
MOV AX,[SI]
|
MOV AX,[SI]
|
||||||
INC SI
|
INC SI
|
||||||
@ -29,7 +29,7 @@ PRINT_LOOP:
|
|||||||
MOV AL,[SI]
|
MOV AL,[SI]
|
||||||
call PRINT_0_8_HEX
|
call PRINT_0_8_HEX
|
||||||
INC SI
|
INC SI
|
||||||
CMP SI,#DATA+8
|
CMP SI,#DATA+32
|
||||||
JNZ PRINT_LOOP
|
JNZ PRINT_LOOP
|
||||||
|
|
||||||
MOV AH,#0x02
|
MOV AH,#0x02
|
||||||
@ -39,6 +39,9 @@ INT #0x21
|
|||||||
hlt
|
hlt
|
||||||
|
|
||||||
DATA: DB 0x51, 0x17, 0x37, 0x5d, 0x06, 0x3f, 0x51, 0x8b
|
DATA: DB 0x51, 0x17, 0x37, 0x5d, 0x06, 0x3f, 0x51, 0x8b
|
||||||
|
DB 0xa5, 0x33, 0x54, 0xdf, 0xae, 0xee, 0x3a, 0x18
|
||||||
|
DB 0xe9, 0xdb, 0x1f, 0x21, 0x44, 0x4f, 0x99, 0x09
|
||||||
|
DB 0x2a, 0x23, 0x82, 0x4f, 0x52, 0xf1, 0xdc, 0x0b
|
||||||
|
|
||||||
.BLKB 200
|
.BLKB 200
|
||||||
STACK:
|
STACK:
|
||||||
|
@ -94,7 +94,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
`ifdef CALCULATE_IPC
|
`ifdef CALCULATE_IPC
|
||||||
integer instruction_count;
|
reg [128:0] instruction_count;
|
||||||
always @(new_instruction) begin
|
always @(new_instruction) begin
|
||||||
instruction_count<=instruction_count+1;
|
instruction_count<=instruction_count+1;
|
||||||
end
|
end
|
||||||
@ -153,7 +153,7 @@ always @( ERROR ) begin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
integer cycles;
|
reg [128:0] cycles;
|
||||||
|
|
||||||
always @(negedge clock)begin
|
always @(negedge clock)begin
|
||||||
if(reset==1)
|
if(reset==1)
|
||||||
|
Loading…
Reference in New Issue
Block a user