# Class: com.pnfsoftware.jeb.core.units.code.asm.processor.arch.AbstractRegisterBank2

Abstract class to create a processors' register banks. 

 Usage: extend this class; use the non\-static `add` methods \(see: [add](#add(int, String)), [add](#add(int, String, String)), [add](#add(int, String, String, RegisterEncoding, RegisterType))\) to add register definitions to the bank. 

 Note: this class supersedes [AbstractRegisterBank](AbstractRegisterBank); it is recommended to use this class instead of [AbstractRegisterBank](AbstractRegisterBank) to define new register banks.

## Constructor: AbstractRegisterBank2


## Protected Field: entries
Type: `java.util.Map<java.lang.Integer,com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry>`

## Protected Method: add
- parameter: `bitsize`, type: `int`
- parameter: `name`, type: `java.lang.String`
- parameter: `altname`, type: `java.lang.String`
- parameter: `encoding`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterEncoding`
- parameter: `type`, type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterType`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Protected Method: add
- parameter: `bitsize`, type: `int`
- parameter: `name`, type: `java.lang.String`
- parameter: `altname`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Protected Method: add
- parameter: `bitsize`, type: `int`
- parameter: `name`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry`


## Method: getDescriptionEntryMap
- return type: `java.util.Map<java.lang.Integer,com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry>`


