func BankSlice(b []byte, bank uint8) (offset uint32, data []byte) {
	offset = BankOffset(bank)
	if offset > uint32(len(b)) {
		panic(fmt.Sprintf("offset %d is > len(b) %d\n", offset, len(b)))
	}
	if offset + 0x8000 > uint32(len(b)) {
		panic(fmt.Sprintf("full bank at offset %d is > len(b) %d\n", offset + 0x8000, len(b)))
	}

	data = b[offset:offset + 0x8000]

	return
}
// return a slice from a LoRom data that covers only this bank.
return a slice from a LoRom data that covers only this bank.
// return a slice from a LoRom data that covers only this bank .
func BankSlice(b []byte, bank uint8) (offset uint32, data []byte) {
	offset = BankOffset(bank)
	if offset > uint32(len(b)) {
		panic(fmt.Sprintf("offset %d is > len(b) %d\n", offset, len(b)))
	}
	if offset + 0x8000 > uint32(len(b)) {
		panic(fmt.Sprintf("full bank at offset %d is > len(b) %d\n", offset + 0x8000, len(b)))
	}
	data = b[offset:offset + 0x8000]
	return
}
func BankSlice ( b [ ] byte , bank uint8 ) ( offset uint32 , data [ ] byte ) { offset = BankOffset ( bank ) if offset > uint32 ( len ( b ) ) { panic ( fmt . Sprintf ( " \n " , offset , len ( b ) ) ) } if offset + 0x8000 > uint32 ( len ( b ) ) { panic ( fmt . Sprintf ( " \n " , offset + 0x8000 , len ( b ) ) ) } data = b [ offset : offset + 0x8000 ] return }
return a slice from a LoRom data that covers only this bank.
return a slice from a LoRom data that covers only this bank .